Theres also an unsecure way of doing it, namely this(from applicationclass):
@Override
protected ISessionStore newSessionStore() {
return new SecondLevelCacheSessionStore(this, new DiskPageStore()) {
@Override
protected void onBind(Request request, Session newSession) {
sessionMap.put(newSession.getId(), (ZeuzSession)
newSession);
super.onBind(request, newSession);
}
@Override
protected void onUnbind(String sessionId) {
ZeuzSession session = (ZeuzSession)
sessionMap.get(sessionId);
session.onBeforeDestroy();
sessionMap.remove(sessionId);
super.onUnbind(sessionId);
}
};
}
Eyal Golan wrote:
Hello,
Is there a method in Session that is called when the Session is ended?
Ended = user logs out (invalidate) or time-out (or anything else that can do
that)
My goal is to keep some information in the session and persist it when the
session terminates.
Is it "legal" to create a Thread (as a member in the Session / Application)
that every X minutes will get information from the Session and "do something
with it"?
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]