Michael K. wrote:
this is killing me: i can’t find a way to let idle sessions expire after
a certain period of time. If they don’t expire, they will pile up until
there’s no more memory available.
Please, can anybody give me a hint?
Basically, all I need is a hash or list with all the sessions in DRbStore.
This is a quick hack based on the DRb-Server that is shipping with
Rails. It keeps track of sessions access times and the clear_sessions
method removes idle session. You have to find a place where to call this
method from of course, maybe you could call it on every n-th session
access or you could call it externally at given intervals.
How do you other people on the list handle session expiration when using
memcached or DRb as session storage?