Re: logout on session destroy

2013-11-16 Thread Dirk Wichmann
I have updated to 6.12 (without any pane, fantastic... I cannot believe that it was so easy) Thanks a lot now it works Cheers Dirk Am 16.11.2013 14:05, schrieb Francois Meillet: > Update to the 6.12 version or follow Ernesto's advice or write your own > HttpSessionStore. > > François Meillet

Re: logout on session destroy

2013-11-16 Thread Francois Meillet
Update to the 6.12 version or follow Ernesto's advice or write your own HttpSessionStore. François Meillet Formation Wicket - Développement Wicket Le 16 nov. 2013 à 13:17, Dirk Wichmann a écrit : > sorry, there is no methode onInvalidate() to overwrite?? > > not in AuthenticatedWebSessio

Re: logout on session destroy

2013-11-16 Thread Dirk Wichmann
sorry, there is no methode onInvalidate() to overwrite?? not in AuthenticatedWebSession or WebSession or in Session (I use Wicket 6.1) Am 16.11.2013 12:47, schrieb Francois Meillet: > In this case, override the onInvalidate() method in your custom session. > > from the api : > onInvalidate is a

Re: logout on session destroy

2013-11-16 Thread Francois Meillet
In this case, override the onInvalidate() method in your custom session. from the api : onInvalidate is a callback method that is executed when the user session is invalidated either by explicit call to {@link org.apache.wicket.Session#invalidate()} or due to HttpSession expiration. François M

Re: logout on session destroy

2013-11-16 Thread Ernesto Reinaldo Barreiro
Maybe bind sessionId with user ID when session is created? on a persistence storage? So that you can recover user ID with the session Id On Sat, Nov 16, 2013 at 12:19 PM, Dirk Wichmann wrote: > Thanks, that works, but how can I get my WebSession Object?? > In there the user is stored and I need

Re: logout on session destroy

2013-11-16 Thread Dirk Wichmann
Thanks, that works, but how can I get my WebSession Object?? In there the user is stored and I need the id of the user. WebSession.get() does not work Thanks in advance Dirk Am 16.11.2013 11:04, schrieb Francois Meillet: > You can write a unboundListener and register it in your sessionStore. > T

Re: logout on session destroy

2013-11-16 Thread Francois Meillet
You can write a unboundListener and register it in your sessionStore. This code should be in your application init() getSessionStore().registerUnboundListener( new ISessionStore.UnboundListener() { @Override public void sessionUnbound(String sessionId) { // logout t

logout on session destroy

2013-11-15 Thread Dirk Wichmann
Hi all, it's quite frustrating, a simple thing gets complicated. I have a Webapp with login page and logout button. If the user clicks the logout I write a logout timestamp in the database. Now I want to write the same timestamp when the session expires. Only thing I have found on the Web is to us