Closed batizhevsky closed 12 years ago
what version of rubycas-client are you using? We fixed a lot of the session storage problems a while ago.
Sorry I do not find info about this. I use 2.2.1 because rubycas-client-rails require it.
I think if you use master of rubycas-client-rails, you can update rubycas-client to the 2.3 series. Eventually, rubycas-client-rails is going to get some love, but it'll be some time still.
http://code.google.com/p/rubycas-client/issues/detail?id=42
When using cookie storage for sessions (Rails defailt), rubycas-related info occupies more than 3K of it (and 4K is the limit). That's how we get CookieOverflow exception after adding a couple of strings to extra attributes.
To see how much session storage is occupied:
ActiveRecord::SessionStore::Session.marshal(s.data["cas_last_valid_ticket"].response.xml).length
Current solution: switched to db session storage.
Possible solutions:
A) maybe it is possible to store some key attributes in the session and re-create ServiceTicket from them instead of storing the whole object in session;
B) use compression for xml.