Closed
Bug 277235
Opened 20 years ago
Closed 20 years ago
cookies set to "www" when no wildcard is there
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: backglancer, Assigned: darin.moz)
Details
I have my own website and I do not use the www before my name, i.e. http://hostname.com and not http://www.hostname.com Via PHP I set cookies (via sessions to be specific) and I noticed that my sessions werent' working. After hours of debugging my own script I checked the stored cookies and noticed that a cookie with my PHPSESSID was set to www.hostname.com even though i have NEVER accessed that site with www. I have checked it several times, under some different cicrumstances and it confirmed. Same page works fine in IE (no browser-dependant code is EVER used) in short: a cookie that's supposed to be set to hostname.com is set to www.hostname.com
Assignee: bryner → darin
Component: Build Config → Networking: Cookies
Product: Firefox → Core
QA Contact: asa → core.networking.cookies
Version: 1.0 Branch → 1.7 Branch
Could you please create a cookie log as described here http://www.mozilla.org/projects/netlib/cookies/cookie-log.html and attach it?
from reporter: I do not use the whole mozilla, I just use Firefox, I tried setting those variables in c:\prog\Mozilla Firefox\ my cookies.log was 0 length -- Note: The file is always overwritten if you start a new FF session with logging enabled! So open the command prompt, go to your FF directory, set the variables, start firefox.exe from the prompt, delete your existing test cookies (see cookie manager) and run your tests (which should set the cookies), close FF and copy/save the logfile.
Comment 3•20 years ago
|
||
IE treats cookies set for "www.whatever" and for "whatever" as identical. Sounds like a bug in your PHP code -- it's setting cookies for the wrong host.
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.
Description
•