or

WebApplication
{
public void sessionDestroyed(String sessionId)
}

do call super!

johan


On 7/31/07, Martin Funk <[EMAIL PROTECTED]> wrote:
>
> Mark Sandori schrieb:
> > Does anyone know how to detect a session timeout in Wicket 1.3 Beta 2?
> >
> > Right now a new session is silently being created automatically after
> > a timeout.
> >
> > Thanks,
> > Mark.
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> not quite shure if I understand your or wicket correctly.
>
> How about (pseudocode):
>
> class YourNewSessionStore extends 'HttpSessionStore or
> SecondLevelCacheSessionStore' {
> protected void onUnbind(String sessionId)
>     {
>        //do whatever you want on the session timeout
>     }
> }
>
> then introduce YourNewSessionStore to YourApplication by:
>
> class YourApplication ..... {
>     protected ISessionStore newSessionStore()
>     {
>         return new MySessionStore(...);
>     }
> }
>
> see also:
> org.apache.wicket.WebApplication#newSessionStore()
> and:
> org.apache.wicket.protocol.http.AbstractHttpSessionStore#onUnbind(String)
>
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to