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
> Formation Wicket - Développement Wicket
>
>
>
>
>
> Le 16 nov. 2013 à 13:17, Dirk Wichmann <dir...@team-wichmann.de> a écrit :
>
>> 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 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 Meillet
>>> Formation Wicket - Développement Wicket
>>>
>>>
>>>
>>>
>>>
>>> Le 16 nov. 2013 à 12:19, Dirk Wichmann <dir...@team-wichmann.de> a écrit :
>>>
>>>> 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.
>>>>> This code should be in your application init()
>>>>>
>>>>> getSessionStore().registerUnboundListener( new 
>>>>> ISessionStore.UnboundListener() {
>>>>>   @Override
>>>>>   public void sessionUnbound(String sessionId) {
>>>>>           // logout timestamp in the database
>>>>>   }
>>>>> });
>>>>>
>>>>>
>>>>> François Meillet
>>>>> Formation Wicket - Développement Wicket
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Le 15 nov. 2013 à 23:19, Dirk Wichmann <dir...@team-wichmann.de> a écrit :
>>>>>
>>>>>> 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 use
>>>>>> WebApplication.sessionUnbound with Session ID.
>>>>>> When this method is called the AuthenticatedWebSession is still dead I
>>>>>> think or maybe I cant get the Object.
>>>>>> Other thing I found is the method onInvalidate() in the webSession, but
>>>>>> this method is never called. (i'm on Wicket 6.1.)
>>>>>>
>>>>>> What is the right way to do the trick??
>>>>>>
>>>>>> Thanks in advance
>>>>>> Dirk
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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
>>
>


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

Reply via email to