Hi, On Wed, Oct 8, 2008 at 2:16 PM, Shandy Nantz <[EMAIL PROTECTED]> wrote: > I have recently upgraded to rails 2.1.0. and since I have, the parts of > my app that deal with CookieStore (sessions) has failed to work any > longer. In Crome and most other browsers my code simply fails, IE7 is a > little more forgiving since I can get logged in and then I can only see > certain pages. My session code is pretty simple, a session is created by > saying: > > session[:user] = @user
You're storing too much data. You should generally avoid storing 'real' objects in the session. Instead, just store the ID: session[:user_id] = @user.id ...and revivify the actual user object when you need it. ~ j. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

