does anyone know (for sure) how much data we can technically store in
and later retrieve from a Rails session?
The other option to store and retrieve a really big chunk of data seems
to be a Marshal dump+load. But since this seems more complicated than
with a session, I'd prefer to work with the session if possible.
does anyone know (for sure) how much data we can technically store in
and later retrieve from a Rails session?
It depends on the store. Cookies are limited to 4k (and that's base64
encoded, so you actually get about 3k of storage). Database stores are
only limited by whatever size limit the column used to store the data
has.
Big sessions are generally a bad idea though