I studied the classes HttpSessionBindingListener and AbstractHttpSessionStore
as you noted, but I think I'll still have no link between the SessionId from
the HTTPSession and my own Session. Maybe I'm missing something or "I don't
see the wood among all the trees" as we say in Germany...

Andreas

> -----Original Message-----
> From: Eelco Hillenius [mailto:eelco.hillen...@gmail.com] 
> Sent: Monday, February 15, 2010 7:08 PM
> To: sam.lued...@t-online.de
> Cc: users@wicket.apache.org
> Subject: Re: best way to detect session termination
> 
> You could use a HttpSessionBindingListener like Wicket does internally
> (see AbstractHttpSessionStore). Or as a hack store references to the
> session objects in the session listener. That's the easy fix, but
> doesn't scale if you need session replication (unless maybe you use
> e.g. Terracotta).
> 
> Eelco
> 
> On Sun, Feb 14, 2010 at 4:36 AM, Andreas Lüdtke 
> <sam.lued...@t-online.de> wrote:
> > Hi Eelco,
> >
> > thanks for the hint. Now I can detect the end of a session. 
> Unfortunately I
> > can't access my own wicket session in that 
> sessionDestroyed() method in order
> > to get the info about the connected user. I've got ther 
> error message
> > "java.lang.IllegalStateException: you can only locate or 
> create sessions in
> > the context of a request cycle".
> >
> > Do you know how I can achieve this?
> >
> > Andreas
> >
> >> -----Original Message-----
> >> From: Eelco Hillenius [mailto:eelco.hillen...@gmail.com]
> >> Sent: Saturday, February 13, 2010 7:02 PM
> >> To: users@wicket.apache.org; sam.lued...@t-online.de
> >> Subject: Re: best way to detect session termination
> >>
> >> http://www.xyzws.com/Servletfaq/when-do-i-use-httpsessionlistener/7
> >>
> >> Eelco
> >>
> >> On Sat, Feb 13, 2010 at 8:38 AM, Andreas Lüdtke
> >> <sam.lued...@t-online.de> wrote:
> >> > I would like to detect the termination of the session to set the
> >> > "lastAccesTime" in the user profile. This should also
> >> happen if the session
> >> > times out.
> >> >
> >> > I read in archive about a HttpSessionListener that should
> >> do the trick.
> >> > Unfortunately I can't find a place to install it.
> >> >
> >> > Thanks
> >> >
> >> > Andreas
> >> >
> >> >
> >> >
> >> 
> ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to