{"issue":{"created_at":"2011-11-30T17:11:17Z","state":"open","updated_at":"2011-11-30T17:52:52Z","comments":1,"user":{"gravatar_id":"05689051699b1b104d46ce8da96c4597","id":1182068,"url":"https://api.github.com/users/dylancashman","avatar_url":"https://secure.gravatar.com/avatar/05689051699b1b104d46ce8da96c4597?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"dylancashman"},"body":"First I wanted to say thank you for a great gem.\r\n\r\nI'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.\r\n\r\nThanks!","assignee":null,"id":2404441,"number":15,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"ActionDispatch::Cookies::CookieOverflow - info stored in session?","closed_at":null,"html_url":"https://github.com/kristianmandrup/cantango/issues/15","url":"https://api.github.com/repos/kristianmandrup/cantango/issues/15","milestone":null},"action":"created","comment":{"created_at":"2011-11-30T17:52:52Z","updated_at":"2011-11-30T17:52:52Z","user":{"gravatar_id":"2a018f8b16a3fe7273afde907c2e1bec","id":125005,"url":"https://api.github.com/users/kristianmandrup","avatar_url":"https://secure.gravatar.com/avatar/2a018f8b16a3fe7273afde907c2e1bec?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"kristianmandrup"},"body":"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!","id":2963359,"url":"https://api.github.com/repos/kristianmandrup/cantango/issues/comments/2963359"}}