I just realized that I have a problem with IE, working from one of my pages. I set a cookie using
setcookie('page', '12345', '2000000', '/');
And if I log in I reset, the cookie calls this function again. Everything works fine in firefox because the old cookie is deleted, but in IE, both cookies remain? How can this happen? Isn't that illegal?
I have now fixed this with:
setcookie('page', '', time() - 3600, '/');
setcookie('page', '1234', '2000000', '/');
Is this normal, or am I missing something?
source
share