You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Otávio Augusto <ot...@bol.com.br> on 2004/01/10 01:41:45 UTC
expiring time
How to I set the expiring time for a session (or the sessions)?
Thanks in advance
Otávio Augusto
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: expiring time
Posted by cn...@rayc.brevsville.com.au.
Or you can do it programatically:
request.getSession().setMaxInactiveInterval(1200);
Set timeout to 20 minutes. The parameter is defined in seconds.
Chris
On Fri, 9 Jan 2004, Geeta Ramani wrote:
> Ot�vio:
>
> To set session timeout to 60 minutes, add this to your web.xml:
>
> <session-config>
> <session-timeout>60</session-timeout>
> </session-config>
>
> Regards,
> Geeta
>
> Ot�vio Augusto wrote:
>
> > How to I set the expiring time for a session (or the sessions)?
> >
> > Thanks in advance
> >
> > Ot�vio Augusto
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: expiring time
Posted by Geeta Ramani <ge...@cmpco.com>.
Otávio:
To set session timeout to 60 minutes, add this to your web.xml:
<session-config>
<session-timeout>60</session-timeout>
</session-config>
Regards,
Geeta
Otávio Augusto wrote:
> How to I set the expiring time for a session (or the sessions)?
>
> Thanks in advance
>
> Otávio Augusto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: expiring time
Posted by "Daniel H. F. e Silva" <dh...@yahoo.com>.
Ot�vio,
Take a look on HttpSession class reference. I'm sure you'll find answer there.
Cheers,
Daniel Silva.
--- Ot�vio Augusto <ot...@bol.com.br> wrote:
> How to I set the expiring time for a session (or the sessions)?
>
> Thanks in advance
>
> Ot�vio Augusto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org