Disco_Stu
05-17-2014, 07:47 AM
Has anyone had problems with cookies and IE 11?
I read and write a lot of cookies and this always worked in Firefox, Chrome and IE. Now it no longer works in IE 11 in a windows 8.1 environment
When I retrieve a cookie for the first time the correct value is returned. Then after I update the cookie any new retrieves of the same cookie returns a null value even though I can see the cookie value in IE debugger.
The cookies are being set in PHP and retrieved in Javascript within the vBulletin template.
It's very strange. As I've said I can see the value in debugger but a null is returned into the template Javascript function.
I may end up having to take a different approach just for IE.
Update:
Apparently IE 11 is very fussy about the cookie domain. I solved this by specifying the domain when I create the cookie in PHP. Now the browser can retrieve the cookie value.
With previous versions of IE as well as Firefox and Chrome I never had to specify the domain when writing the cookie
I read and write a lot of cookies and this always worked in Firefox, Chrome and IE. Now it no longer works in IE 11 in a windows 8.1 environment
When I retrieve a cookie for the first time the correct value is returned. Then after I update the cookie any new retrieves of the same cookie returns a null value even though I can see the cookie value in IE debugger.
The cookies are being set in PHP and retrieved in Javascript within the vBulletin template.
It's very strange. As I've said I can see the value in debugger but a null is returned into the template Javascript function.
I may end up having to take a different approach just for IE.
Update:
Apparently IE 11 is very fussy about the cookie domain. I solved this by specifying the domain when I create the cookie in PHP. Now the browser can retrieve the cookie value.
With previous versions of IE as well as Firefox and Chrome I never had to specify the domain when writing the cookie