Thanks Nino,
That is exactly what I was looking for.

On Fri, Jun 20, 2008 at 10:03 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> 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]
>
>


-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

Reply via email to