Kyle
Kyle

Reputation: 22035

Cookie not being set on IE, but sets fine on chrome and firefox

I'm calling this code on IE8, and on firefox:

document.cookie = 'val=500; expires=Wed, 18 Aug 2010 09:06:21 GMT; path=/dir/257/the-quick-brown-fox'

It works fine on firefox and chrome, but not on IE. Anyone see whats wrong?

UPDATE: if I don't put the path then it works in both browsers, but I'd like to be able to put the path:

document.cookie = 'val=500; expires=Wed, 18 Aug 2010 09:06:21 GMT'

Upvotes: 1

Views: 2258

Answers (1)

Michael Rodrigues
Michael Rodrigues

Reputation: 5137

The first thing to check would be the security settings on IE. Maybe it's set (or defaulted) to not accept cookies.

Maybe an obvious thing, but somehow when you get deep into bug fixing the obvious things have a tendency to bite you.

Upvotes: 2

Related Questions