johnmcauley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jul-09 13:37 UTC
CookieOverflow - 4k Session?
Hello all, I get the following error when I stuff my seesion with more than 4k of data. CGI::Session::CookieStore::CookieOverflow My problem is that I obviously need a fatter session. How do other users by-pass the 4k restriction on session variables? Regards, John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 9 Jul 2008, at 14:37, johnmcauley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > Hello all, > > I get the following error when I stuff my seesion with more than 4k of > data. > > CGI::Session::CookieStore::CookieOverflow > > My problem is that I obviously need a fatter session. > How do other users by-pass the 4k restriction on session variables? >Don''t use the cookie store (which is limited by the fact that cookies should not be > 4k) Fred> Regards, > > John > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 9 Jul 2008, at 14:39, Frederick Cheung wrote:> > On 9 Jul 2008, at 14:37, johnmcauley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > >> >> Hello all, >> >> I get the following error when I stuff my seesion with more than 4k >> of >> data. >> >> CGI::Session::CookieStore::CookieOverflow >> >> My problem is that I obviously need a fatter session. >> How do other users by-pass the 4k restriction on session variables? >> > Don''t use the cookie store (which is limited by the fact that > cookies should not be > 4k) >And I should add that sticking lots of data in the session isn''t usually a great idea. Fred --~--~---------~--~----~------------~-------~--~----~ 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 a écrit, le 07/09/2008 03:44 PM :> > >> Don''t use the cookie store (which is limited by the fact that >> cookies should not be > 4k) >> >> > > And I should add that sticking lots of data in the session isn''t > usually a great idea. >Indeed, in most cases replacing AR objects with their ids is enough. There are cases where that isn''t enough though (like storing a long temporary list of ids in session) in this case you have the choice of storing whatever is too big locally (on disk or in DB) with a reference to it in the session but it may not be better than simply using the activerecord/memcache/... sessions. It depends on your actual use case. Lionel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Apparently Analagous Threads
- Upgrading rails to 2.3.2 - CookieOverflow issue
- CookieStore and Session data via POST vars (no cookies)
- Storing an order object in a cookie based session
- Security problems with CookieStore and CSRF protection
- how to check the config.action_controller.session options ?