[Seaside] Session expiration and data cleaning
lasmiste at gmail.com
Mon Feb 24 10:39:33 UTC 2014
I need to clear some data on session expiration. After several searches and
attempts I discovered that sessions expired after #cacheTimeout but they are
unregistered only after the creation of 10 more sessions, see here:
you can change it reducing the cacheReapInterval, for example if you want to
unregister your session after 2 sessions are created, you can write:
myApplication cache reapingStrategy configuration at:#cacheReapInterval put:
and you can test it creating a MySession:
Time now inspect.
then associate it to your application:
myApplication preferenceAt: #sessionClass put: MySession.
and looking at the time of inspection, so far so good.
I need to clean my data when the session expires (with or without a
timeout), not when the session expires *and* after 2 or more sessions are
Have you any suggestion?
View this message in context: http://forum.world.st/Session-expiration-and-data-cleaning-tp4745919.html
Sent from the Seaside General mailing list archive at Nabble.com.
More information about the seaside