Hi there, 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. Thanks for your help! Tom
on 2008-12-22 01:07
on 2008-12-22 01:19
Tom Ha wrote: > does anyone know (for sure) how much data we can technically store in > and later retrieve from a Rails session? Why not store it in the database? The session object should only store a tiny bit of volatile context, such as the ID of the current user... -- Phlip
on 2008-12-22 01:48
On Dec 22, 12:07 am, Tom Ha <rails-mailing-l...@andreas-s.net> 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
on 2008-12-22 02:39
Although I have idea, I would guess that you can store as much in rails session as you want. Your server probably won't like you much though.
on 2008-12-22 07:00
Thank you !