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?