DO NOT REPLY [Bug 10656] - Session Timeout incorrect for 0 in web.xml
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10656. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10656 Session Timeout incorrect for 0 in web.xml [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] ||nephew.com --- Additional Comments From [EMAIL PROTECTED] 2004-01-01 23:59 --- *** Bug 11745 has been marked as a duplicate of this bug. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 10656] - Session Timeout incorrect for 0 in web.xml
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10656. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10656 Session Timeout incorrect for 0 in web.xml [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2003-12-27 20:40 --- This has been fixed (in o.a.c.core.StandardContext) by porting the fix from TC5. The fix will be included in the next TC4 release. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 10656] - Session Timeout incorrect for 0 in web.xml
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10656. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10656 Session Timeout incorrect for 0 in web.xml --- Additional Comments From [EMAIL PROTECTED] 2002-07-10 19:33 --- True, and page 222 of Servlet 2.3 says that Session.getMaxInactiveInterval() must return a negative to indicate that the session never times out. So I propose this patch to fix both problems. Index: ManagerBase.java === RCS file: /home/cvspublic/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session/ManagerBase.java,v retrieving revision 1.11 diff -u -r1.11 ManagerBase.java --- ManagerBase.java14 Jan 2002 23:38:03 - 1.11 +++ ManagerBase.java10 Jul 2002 19:27:58 - @@ -397,11 +397,14 @@ /** * Set the default maximum inactive interval (in seconds) - * for Sessions created by this Manager. + * for Sessions created by this Manager. -1 means never timeout * * @param interval The new default value */ public void setMaxInactiveInterval(int interval) { + + if ( interval == 0 ) + interval = -1; int oldMaxInactiveInterval = this.maxInactiveInterval; this.maxInactiveInterval = interval; -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]