Closed Bug 295987 Opened 20 years ago Closed 20 years ago

Cookie is not deleted immediately when expiration is set to -1

Categories

(Core :: Networking: Cookies, defect)

1.7 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: zippy333, Assigned: darin.moz)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 When a client-side javascript sets a cookie with the expiration data to "-1" the cookie will only be deleted when Firefox is closed. Even when the privacy option is set to save cookies untill they expire. Reproducible: Always Steps to Reproduce: 1. Set the expiration of a cookie to "-1" Actual Results: The cookie manager shows: Expiration: End of this session Expected Results: Immediate removal of the cookie
Assignee: nobody → darin
Component: General → Networking: Cookies
Product: Firefox → Core
QA Contact: general → networking.cookies
Version: unspecified → 1.7 Branch
How do you know it is not expired? By checking the manager, or did you actually verify that it is not send over the network anymore?
(In reply to comment #1) > How do you know it is not expired? By checking the manager, or did you actually > verify that it is not send over the network anymore? By checking the manager, nothing is sent over the network as the cookie is set and 'removed' by client-side javascript.
Attached file Bug repro
Instructions are in the attachment.
actually, expires=-1 is not valid. expires= expects a date, not an integer.
I looked it up in the standards specifications and you are right. But when I look around on the web I see lots of scripts using "expires=-1" to expire a cookie immediately. I'll resolve this bug as invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: