That won't solve your problem though. You'd get the same kind of call
back as you would get by overriding onUnbind in a custom session
store. It won't do anything for catching the event that a user closes
a browser without properly logging out.
Eelco
On 6/17/07, wicket21 <[EMAIL PROTECTED]> wrote:
>
>
> I was looking for a "wicket" solution, but this is not a bad idea. I will
> try this later on today and see how it goes (it does seem straightforward
> enough...)
>
> Konstantinos
>
>
>
> Harald Gruber wrote:
> >
> >
> > you could write a HttpSessionListener:
> >
> > in your WEB-INF:
> >
> > <listener>
> > <listener-class>com.my.SessionObserver</listener-class>
> > </listener>
> >
> >
> > class:
> >
> > public class SessionObserver implements HttpSessionListener
> > {
> > private static final Log LOG =
> > LogFactory.getLog(SessionObserver.class);
> >
> > public void sessionCreated(HttpSessionEvent se) {
> > HttpSession s=se.getSession();
> > if (LOG.isDebugEnabled()) LOG.debug("sessionCreated " +
> > s.getId());
> > }
> >
> > public void sessionDestroyed(HttpSessionEvent se) {
> > HttpSession s=se.getSession();
> >
> > /* do something here */
> > }
> >
> > public SessionObserver() {
> > if (LOG.isDebugEnabled()) LOG.debug("<init>");
> > }
> >
> > }
> >
> >
> > -harald
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/how-to-detect-http-session-expiry---timeout-due-to-no-user-activity-tf3930442.html#a11170785
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user