Closed Bug 284142 Opened 20 years ago Closed 20 years ago

Cookies not saved for servers with multiple sub-domains (a.b.c.com)

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: edatwork, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Firefox is not returning a cookie set by a server with multiple sub-domains
(a.b.c.com) or using IP for domain. Cookies work normally for single sub-domain. 

I could not set a cookie for such a server using these methods:
1. Explicit (domain='a.b.c.com' or domain='.a.b.c.com')
2. Default (no domain specified)
3. IP-based (domain='12.3.45.67')

Mozilla 1.7.5 did not exhibit this problem.

Reproducible: Always

Steps to Reproduce:
1. Send Set-Cookie header from server with domain like "a.b.c.com"
2. List cookies sent back from Firefox on next request
3. Cookie is not sent


Expected Results:  
Cookies should be stored and sent to servers with multiple sub-domains.

RFC: http://www.ietf.org/rfc/rfc2109.txt
please create a cookie log demonstrating the problem, and attach it to this bug.
instructions can be found at

http://www.mozilla.org/projects/netlib/cookies/cookie-log.html
After doing 'Remove All Cookies', the cookie started being set correctly. I
turned on cookie logging, but have since been unable to reproduce the problem. I
had multiple cookies set for varying domains which may have been a factor.

Incidentally, the Web Developer toolbar (extension) *does* fail to show cookies
with domains like a.b.c.com in 'View Cookie Information'. But, the cookie log
shows that the cookies are accepted and sent properly, and Firefox shows them
within Tools-Options.

If I can reproduce the problem, I will pass along details.
wfm for now, please reopen if you can reproduce this again.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.