tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Barkon <igorbar...@att.net>
Subject Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age
Date Tue, 16 Nov 2010 16:58:20 GMT
I run Tomcat 6.0.29 on Windows XP and IE 8.0.6001.18702.

I noticed that getMaxAge() method of any cookie always returns -1 evenĀ for 
persistent cookie with real positive value of maximum age. IE treats this cookie 
correctly: cookie persists for amount of seconds specified by setMaxAge method. 
But getMaxAge always return -1. Based on specification getMaxAge must return 
actual value of maximum age of a given cookie, not default value. Is this a bug?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message