On Dec 22, 12:07 am, Tom Ha <[email protected]> wrote:
> Hi there,
>
> 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
Fred
> 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.
>
> Thanks for your help!
> Tom
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---