You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sandor Feher <sf...@bluesystem.hu> on 2016/09/22 10:38:14 UTC

Handling session timeout properly

Hi,

My application have some AjaxSelfUpdatingTimerBehavior in its header panel
so my session never expires due to ajax requests. Somehow I would like to
get rid of it.
How is it possible to fence ajax request from the real request ? (As I
realized there is no way.)
I need an advice how to handle this screnario.

Wicket 6.24.0

TIA, Sandor

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handling-session-timeout-properly-tp4675541.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Handling session timeout properly

Posted by Sandor Feher <sf...@bluesystem.hu>.
Thanks, looks very useful!

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handling-session-timeout-properly-tp4675541p4675544.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Handling session timeout properly

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
https://github.com/reiern70/antilia-bits/tree/master/client-sign-out-parent

There was some logic in here to trigger a signout from client side.

On Thu, Sep 22, 2016 at 12:38 PM, Sandor Feher <sf...@bluesystem.hu> wrote:

> Hi,
>
> My application have some AjaxSelfUpdatingTimerBehavior in its header panel
> so my session never expires due to ajax requests. Somehow I would like to
> get rid of it.
> How is it possible to fence ajax request from the real request ? (As I
> realized there is no way.)
> I need an advice how to handle this screnario.
>
> Wicket 6.24.0
>
> TIA, Sandor
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Handling-session-timeout-properly-tp4675541.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro

Re: Handling session timeout properly

Posted by Sandor Feher <sf...@bluesystem.hu>.
Hi Martin,

I checked up your code. I'm afraid this will not solve my problem because
does not detect "normal" user activity. Ie. when user click on some page
then the session timeout must be reset.
I'm pretty sure that I must change my approach how my notification panel
handled.


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handling-session-timeout-properly-tp4675541p4675547.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Handling session timeout properly

Posted by Martin Spielmann <ma...@pingunaut.com>.
You could extend your existing�AjaxSelfUpdatingTimerBehavior so it has
an information about your desired timeout with very little overhead.

On every update, you could decrement your remaining session time a
little bit.

I created the following gist. I think the code is more explanatory than
an email:
https://gist.github.com/pingunaut/feb5611afa910465f0c05f8a903af8b3

Hope that helps,
regards,
Martin


On Thu, 2016-09-22 at 03:38 -0700, Sandor Feher wrote:
> Hi,
> 
> My application have some AjaxSelfUpdatingTimerBehavior in its header
> panel
> so my session never expires due to ajax requests. Somehow I would
> like to
> get rid of it.
> How is it possible to fence ajax request from the real request ? (As
> I
> realized there is no way.)
> I need an advice how to handle this screnario.
> 
> Wicket 6.24.0
> 
> TIA, Sandor
> 
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.
> com/Handling-session-timeout-properly-tp4675541.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

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