You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laurie Harper <la...@holoweb.net> on 2008/05/13 07:04:10 UTC

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

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@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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

Posted by "Alberto A. Flores" <aa...@gmail.com>.
Please include container type, version, etc, etc.

Laurie Harper wrote:
> 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@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

-- 

Alberto A. Flores
http://www.linkedin.com/in/aflores