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