Use javax.servlet.http.HttpServletRequest#getRequestedSessionId to decide that

On Wed, Dec 28, 2011 at 1:56 AM, Igor Vaynberg <igor.vaynb...@gmail.com> wrote:
> record their last access time in a cookie. then when your auth
> strategy descides to redirect to homepage it can check the cookie and
> decide to redirect to the expired error page instead.
>
> -igor
>
>
> On Tue, Dec 27, 2011 at 7:54 AM, manuelbarzi <manuelba...@gmail.com> wrote:
>> it implies recording that user information somewhere. would prefer to
>> avoid that.
>>
>> no chance to override or replace some piece of wicket api to handle
>> this situation?
>>
>>
>> .
>>
>>
>>
>> On Tue, Dec 27, 2011 at 4:10 PM, Ernesto Reinaldo Barreiro
>> <reier...@gmail.com> wrote:
>>> Manuel,
>>>
>>> I don't know right now if there is a pure Wicket solution but you can
>>> always use a session listener [1] to record  remotes IPs of destroyed
>>> sessions and use that info decide whether to show a message or not.
>>>
>>> Cheers,
>>>
>>> Ernesto
>>>
>>> 1-
>>> http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionListener.html
>>>
>>>
>>> On Tue, Dec 27, 2011 at 3:14 PM, manuelbarzi <manuelba...@gmail.com> wrote:
>>>
>>>> hi,
>>>>
>>>> this is wicket 1.4.19 (& cannot upgrade to 1.5).
>>>>
>>>> the scenary is: [1] when user is logged in > [2] after inactive long
>>>> time session expires > [3] user clicks on bookmarkablepagelink > [4]
>>>> request handling automatically brings the user to homepage (default)
>>>>
>>>> if possible, what's the recommended way to intercept transition from
>>>> step [3] to [4], so the application can - at least - detect this event
>>>> and show the feedback information "session expired" to the user when
>>>> homepage is loaded? (already known that bookmarkablepagelink is
>>>> dispatched by the handling servlet)
>>>>
>>>> thky
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> .
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to