You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Maris Orbidans <sm...@ime.lv> on 2008/02/01 02:36:24 UTC

how to prevent session timeouts

hi

I have created a small web application with wicket - 
http://cdzfmobile.bf.lu.lv

There are some minor issues related with session timeouts:

1)  If I open login page and wait until session expires then I get 
"session expired" error message if I try to login.  How can I fix that 
?  Should I make login page stateless ?
2)  And I would like to prevent session timeouts as long as user has web 
page opened in browser.  Is there any ajax component that sends requests 
periodically to server thus refreshing session ?

Maris



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


Re: how to prevent session timeouts

Posted by Johan Compagner <jc...@gmail.com>.
1> yes make the form in your login page a statelessform.

2> use a ajax poller. Just poll the server once in every x minutes

johan



On Feb 1, 2008 2:36 AM, Maris Orbidans <sm...@ime.lv> wrote:

> hi
>
> I have created a small web application with wicket -
> http://cdzfmobile.bf.lu.lv
>
> There are some minor issues related with session timeouts:
>
> 1)  If I open login page and wait until session expires then I get
> "session expired" error message if I try to login.  How can I fix that
> ?  Should I make login page stateless ?
> 2)  And I would like to prevent session timeouts as long as user has web
> page opened in browser.  Is there any ajax component that sends requests
> periodically to server thus refreshing session ?
>
> Maris
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>