setMaxAge(0) does not work correctly

2000-10-16 Thread Dave Ford

To delete a cookie called x, the following should work:

Cookie c = new Cookie("x","bla");
c.setMaxAge(0);
response.addCookie(c);

But it doesn't. Upon inspecting the http response header that was actually
generated, I found this:

Set-Cookie: a=18; Path=

I beleive that setMaxAge should result in a value for "expires" perhaps
something like this:

Set-Cookie: a=18; Expires=some_past_date; Path=

Dave Ford





RE: setMaxAge(0) does not work correctly

2000-10-16 Thread Christophe Hartwig

Hi !

I thought setMaxAge(0) was used to set a "transient" cookie, one that
disapears when browser is closed... If you want the cookie to expire, you'll
probably have to set it to a past date explicitely...

Bye
Christophe

 -Original Message-
 From: Dave Ford [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 16, 2000 10:20 AM
 To: Orion-Interest
 Subject: setMaxAge(0) does not work correctly
 
 
 To delete a cookie called x, the following should work:
 
 Cookie c = new Cookie("x","bla");
 c.setMaxAge(0);
 response.addCookie(c);
 
 But it doesn't. Upon inspecting the http response header that 
 was actually
 generated, I found this:
 
 Set-Cookie: a=18; Path=
 
 I beleive that setMaxAge should result in a value for 
 "expires" perhaps
 something like this:
 
 Set-Cookie: a=18; Expires=some_past_date; Path=
 
 Dave Ford
 
 




Re: setMaxAge(0) does not work correctly

2000-10-16 Thread Robert Krueger

At 01:19 16.10.00 , you wrote:

please file a bug report in bugzilla.

robert

To delete a cookie called x, the following should work:

Cookie c = new Cookie("x","bla");
c.setMaxAge(0);
response.addCookie(c);

But it doesn't. Upon inspecting the http response header that was actually
generated, I found this:

Set-Cookie: a=18; Path=

I beleive that setMaxAge should result in a value for "expires" perhaps
something like this:

Set-Cookie: a=18; Expires=some_past_date; Path=

Dave Ford


(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





Re: setMaxAge(0) does not work correctly

2000-10-16 Thread Joel Shellman

Which version of Orion are you using? I know at least one cookie bug that
was recently fixed, so please make sure you are using a new version of
Orion.

Joel Shellman
Chief Software Architect
http://www.ants.com/90589781

- Original Message -
From: "Dave Ford" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, October 16, 2000 1:19 AM
Subject: setMaxAge(0) does not work correctly


 To delete a cookie called x, the following should work:

 Cookie c = new Cookie("x","bla");
 c.setMaxAge(0);
 response.addCookie(c);

 But it doesn't. Upon inspecting the http response header that was actually
 generated, I found this:

 Set-Cookie: a=18; Path=

 I beleive that setMaxAge should result in a value for "expires" perhaps
 something like this:

 Set-Cookie: a=18; Expires=some_past_date; Path=

 Dave Ford








Re: setMaxAge(0) does not work correctly

2000-10-16 Thread Dave Ford

Which version of Orion are you using?
I am using 1.3.8.

Dave Ford