views:

593

answers:

2

I'm testing a site I've built using the latest build of Chrome on Windows 7 and for some reason it is having issues with cookies. From what I can tell the cookies are being set correctly by the php script but then fail some basic validation in my script on the next page load and are then reset to the default setting.

What is baffling is when using Chrome with Windows XP there are no issues at all. Additionally there are no issues when using IE 8 on Windows 7 or the Mac build of Chrome, Firefox or Safari.

The only thing I could think of was to increase the cookie expiration from a few minutes to 25 minutes. Changing the expiration time hasn't solved the issue at all though. Anyone have any suggestions?

+1  A: 

This is probably a long shot if you're using php's setcookie() function, but double check that your cookie/header isn't malformed. It's possible Chrome is less forgiving about a small error that the other browsers ignore.

keithjgrant
A: 

i'm having alomst the same promblem with my php script to set cookie it work's fine on my win xp with google chrome but it doesn't set the cookie in chrome on win 7

eliside