Closed
Bug 58858
Opened 24 years ago
Closed 24 years ago
cookies don't expire and can't be removed
Categories
(Core :: Networking: Cookies, defect, P3)
Tracking
()
RESOLVED
INVALID
People
(Reporter: aselimovic, Assigned: morse)
Details
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BuildID: 2000061311
I can't remove cookies using JS and they don't seem to expire.
Reproducible: Always
Steps to Reproduce:
1.Put this code anywhere document.cookie = '';
2.
3.
Actual Results: Does nothing.
Expected Results: Should remove all cookies which match domain and path.
document.cookie = ''; // removes cookies when I call it with Netscape 4.x or
IE - M18 doesn't do anything here
I also tried using Perl:
print "Set-Cookie: \n";
# or print "Set-Cookie:\n";
This one creates a cookie with name and value set to an empty string.
They also don't seem to expire when I say:
$c->expires('-1d') # yesterday
Assignee | ||
Comment 1•24 years ago
|
||
I'm afraid I don't understand this bug report at all. Could you try explaining
it so it's a bit clearer. Thanks.
Reporter | ||
Comment 2•24 years ago
|
||
Let me try it with a question. What should browser do when I say:
document.cookie = '';
Assignee | ||
Comment 3•24 years ago
|
||
I assume that the "I" you refer to is not a person but rather is javascript
contained on a web page that the browser encounters. ;-)
In that case it sets a cookie with no expiration time. If you want it to expire
at the end of the session you would add an ";expires=0" and if you wanted it to
expire at some particular time in the future you would insert that time/date in
place of the 0.
If you want to remove a cookie, you need to set a new cookie with the same name
and give it an expiration time that has already passed.
This is the same behavior as in 4.x, so if you are saying that 4.x acted
differenlty, please give a concrete example with step-by-step details.
Comment 4•24 years ago
|
||
Based on the comments here, this bug is invalid. reporter, if you feel that
this is a real bug, please feel free to reopen and provide more information.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•