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

View: New views
3 Messages — Rating Filter:   Alert me  

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

by shrimpywu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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>
   

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???

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 Threaded | Show Only this Message

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@...


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

by Alberto A. Flores :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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



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