Search code examples
ruby-on-railssessioncookiescookiestore

Rails CookieStore::CookieOverflow, not for all users, only in production


I have a couple users that are getting this CookieStore::CookieOverflow error.

I'm suspicious of nginx/passenger because I just switched to that last week (from nginx/thin) and now these are happening.

It's always a particular action, but it doesn't happen for all users. I checked to see what I'm storing in the session and I'm not saving any large objects, just a couple ids and a couple boolean values.

If I were storing big objects in the session, I'd expect all users to have this error.

Suggestions on how to troubleshoot this would be helpful.


Solution

  • Three Date objects stored in the session were causing this. Removing them from the session stopped the error from happening.