Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ActionDispatch::Cookies::CookieOverflow - info stored in session? #15

dylancashman opened this Issue Nov 30, 2011 · 1 comment


None yet
2 participants

First I wanted to say thank you for a great gem.

I'm having a CookieOverflow Error when using Cantango with a custom role system. I get the CookieOverflow when I try to log in as a user that has ~10 or so roles. It doesn't look like it's my own session, and I feel like I've seen Cantango save somethings in the session. Can you point me out to where Cantango might be accessing and manipulating the site cookie so I can see what I can do about it? I've tried to search through the wikis but I couldn't find it.



kristianmandrup commented Nov 30, 2011

Yes, by default CanTango will try to cache the roles in the Session, which by default is stored in the cookie, which has very limited storage. One solution is to simply turn off caching. Another solution would be to configure Rails to use a Session store such as Memstore or similar which can handle larger amounts of data. CanTango also supports using Moneta as the cache (key-value store). Since around 0.9.4, CanTango employs a more advanced caching model which demands more storage on the Session. You could also go back to a CanTango version before, say 0.9 which employs a much simpler caching model. Note that we are in the process of totally refactoring/restructuring cantango for the 1.0 release, where it will be split up in various smaller subprojects. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment