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 -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Dec-22 00:47 UTC
Re: What''s the maximum storage size of a Session ?
On Dec 22, 12:07 am, Tom Ha <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Sun, Dec 21, 2008 at 7:07 PM, Tom Ha <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > 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 > -- > Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you ! -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---