Re: Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Igor Barkon
actual value of maximum age -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Igor, On 11/16/2010 11:58 AM, Igor Barkon wrote: > 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 cook

Re: Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Igor Barkon
);   }   out.println("");   out.println(rb.getString("cookies.make-cookie") + "");   out.println("Name:");   out.println("Value:");   out.println("Max Age:");   out.println("");   out.println("");   out.println("

Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Igor Barkon
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. B

Is this correct behavior of cookies

2010-11-15 Thread Igor Barkon
I run development on Tomcat 6.0.29 and IE 8.   I need help to understand behavior of cookies. I created a new cookie and setup maxAge to 60 seconds running script setMaxAge(60). I expected this cookie to be persistent and to exist for 60 seconds. I ran this script to create the cookie Cookie newC