« Return to Thread: hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file

Re: hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file

by Laurie Harper :: Rate this Message:

Reply to Author | View in Thread

shrimpywu wrote:
> hi, what is the difference between specify time out and do not specify the
> timeout value in the web.xml file
>
>    <session-config>
>         <session-timeout>30</session-timeout>
>      </session-config>

According to the Servlet specification, if you don't specify this
session timeout will be set to the container's default (which will be
server dependent).

> before, i do not specify this in the web.xml file
> when the session has been timeout, i sometime got some exception
>
> but after i did that..no exception any more..why???

Without even knowing what the exception was there's no way to guess.
You'd probably be better off trying to diagnose why the exception occurs
in the first place, rather than ask why it goes away.

L.


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

 « Return to Thread: hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file

LightInTheBox - Buy quality products at wholesale price