On 27 Apr 2010, at 17:44, Andy J. wrote:
The other way is to have a version field checked/set in a filter in
your application and empty any incoming session requests if they
don’t have the right version. It won’t delete them all immediately,
but at the time they’re being used.
Well, if you’re using the cookiestore for sessions, you don’t have to
worry about stale sessions anyway. The file store should be avoided
imo, the IO is simply too expensive. Database session storage is an
option, although I see little to no reason to use it when you have
something that just takes session storage away from the server.
Your database optimizations and operations can be run as a cron tab,
just call a rake task that does what it needs to do and be done with it.
Peter De Berdt