Cookie issues in Google Chrome

Possible duplicate:
setcookie () does not set cookies in Google Chrome

I am testing a site that I built using the latest version of Chrome for Windows 7, and for some reason it has problems with cookies. From what I can tell, cookies are set correctly using php script, but then some basic checks are not performed in my script on the next page load, and then reset to default.

What is not clear when you use Chrome with Windows XP, there are no problems. In addition, there is no problem using IE 8 in Windows 7 or the OSX build of Chrome, Firefox, or Safari.

Anyone have any suggestions?

+4
source share
2 answers

This is probably a long shot if you use the php setcookie() function, but double check that your cookie / header is not distorted. Chrome may be less forgiving of a small mistake that other browsers ignore.

+2
source

I had a problem storing Chrome cookies with Jetty - it worked on FF and IE, but not on Chrome. A cookie stores three pieces of information, and I found that the problem is with the delimiter character. I used ';' as a separator (so the cookie was, for example, "alpha; beta; gamma"), but only the first token ("alpha") was stored.

I used a different delimiter and the problem disappeared.

I don’t know if it was as Categrant suggested, Chrome was more picky or just broken, but I voted for his answer because he gave me the key I need :-)

0
source

Source: https://habr.com/ru/post/1304992/


All Articles