I just figured out that I have a problem in IE while working with one of my pages. I set cookie with:
setcookie('page', '12345', '2000000', '/');
And if I login I reset the cookie calling that function again. In firefox everything works fine cause the old cookie is deleted but in IE both cookies stay? How can this happen? Isn't that illegal?
now I fixed that with:
setcookie('page', '', time() - 3600, '/');
setcookie('page', '1234', '2000000', '/');
Is this ok solution or am I missing something?
According to the documentation, that is the correct way to remove a cookie.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With