Closed
Bug 159082
Opened 23 years ago
Closed 23 years ago
Every product in a shoppingmall creates a new cookie
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: nils, Assigned: morse)
References
()
Details
In this Site http://www.aquapac.de(sorry it german) i have a shop, if you add
(klick on "in den warenkorb") some things into the shopping cart, there will be
only one product from the same line, if you add a second product from another
line it will be create a new cookie. What can i do?
Nils
Seems mozilla adds spaces to the cookies and also leavtin cookie path default
only points to one cookie.
to fix :
1. setPath("/") when creating a cookie.
2. Use .trim() liberally on cookie names and values. I think only names have
space before/after them and values are fine.
Should be makred invalid as mozilla follows the RFC spec and doesnt break it.
oh and one more thing.
cookies sent from 127.0.0.1 are NOT the same as those sent from localhost. moz
seems to differentiate IP's and hostnames when reading/sending cookies.
so if you go to http://127.0.0.1 and then http://localhost you end up with two
different cookies. similarly going to http://mysite.com and http://10.10.10.1
are two different sites for cookies according to moz.
marking invalid per comment #1
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•