Rails: how to save a large array in a session? (ActionDispatch :: Cookies :: CookieOverflow)

Im trying to save an array in a session that is much larger than 4k.

In this case, the following occurs: ActionDispatch :: Cookies :: CookieOverflow Error.

Does anyone have a clue how to save a large array in a session? Saving it to db is not what I want.

Thanks Marcus

0
arrays ruby-on-rails cookies session
Jan 24 '11 at 13:35
source share
1 answer

You need to change your session_store and not use cookie_store. You can use the active_record_store example.

+6
Jan 24 2018-11-11T00:
source share



All Articles