Markus
Markus

Reputation: 4038

rails: how to save a big array in session? (ActionDispatch::Cookies::CookieOverflow)

Im trying to save a array in a session which is much bigger than 4 KB.

In this case the: ActionDispatch::Cookies::CookieOverflow Error occures.

Does anybody have a hint how to save a bigger array in a session? Saving it to the db is not what I want.

Thanks, Markus

Upvotes: 0

Views: 7588

Answers (1)

shingara
shingara

Reputation: 46914

You need change your session_store and don't use the cookie_store. You can use the active_record_store by example.

Upvotes: 6

Related Questions