You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sowjanya chimmani <so...@gmail.com> on 2006/10/03 12:06:06 UTC

session management

Hi All,


              In our webapplication (struts based) we are using Ajax code
(as part of header in all jsp)which will hits the server for every 10 sec
so every time session will be updated so it is not possible to maintain the
session (sesstion will not expires though after the session time out value )
.Please can any one help me to mintain the session(iam setting the session
time out value as 30 min)
-- 
sowjanya

Re: session management

Posted by Ed Griebel <ed...@gmail.com>.
It is not clear what you are asking. Is the problem that
- the session is not being maintained even when setting the timeout to
30 minutes
- even after 1/2 hour the session does not timeout

An observation, "pinging" the server every 10 seconds will create a
lot of unnecessary work on the server. You can probably change it to a
30-50 second ping and set the session timeout to around a minute if
you want to maintain the session.

Since you are pinging the server regularly, as long as the user has a
window up their session will never expire, even if they walk away or
leave their computer on and browser window up all nite. An alternate
solution would be to keep track of non-ping activity and terminate the
user's session after n minutes of only ping activity, maybe redirect
them to a "idle too long" screen without the AJAX ping when this
occurs.

An alternative approach would be to be able to re-establish the user's
session if they happen to time out, but that is no small task.

good luck,
-ed

On 10/3/06, sowjanya chimmani <so...@gmail.com> wrote:
> Hi All,
>
>
>               In our webapplication (struts based) we are using Ajax code
> (as part of header in all jsp)which will hits the server for every 10 sec
> so every time session will be updated so it is not possible to maintain the
> session (sesstion will not expires though after the session time out value )
> .Please can any one help me to mintain the session(iam setting the session
> time out value as 30 min)
> --
> sowjanya
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: session management

Posted by purushottam hegde <pu...@gmail.com>.
So you know when exactly 30 mins elapses? right.?
immedietly after this you can invalidate the session right?
Regards
PH


On 10/3/06, sowjanya chimmani <so...@gmail.com> wrote:
>
> Hi All,
>
>
>              In our webapplication (struts based) we are using Ajax code
> (as part of header in all jsp)which will hits the server for every 10 sec
> so every time session will be updated so it is not possible to maintain
> the
> session (sesstion will not expires though after the session time out value
> )
> .Please can any one help me to mintain the session(iam setting the session
> time out value as 30 min)
> --
> sowjanya
>
>