Perhaps because in the web.xml you specify the value in minutes, and in
the code the method getMaxInactiveInterval() retrieves the time in seconds??
;-)

Vitor

Chris Wahl wrote:

>Hi,all 
>
>I am using TC4.0.6,
>After I setting session timeout to -1 by adding following in 
>web.xml:
>
>  <session-config>
>    <session-timeout>-1</session-timeout>
>  </session-config>
>
>In a servlet of the same web module I get such interesting output:
>
>hs.getMaxInactiveInterval() = -60  // hs is HttpSession
>
>My question is, why "-1" is replaced by "-60"?
>
>Regards
>Chris
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to