I have a problem with the setcookie function: I don't know why but the cookie doesn't expire.
I create the cookie with
Code: Select all
setcookie('cookie_name', $userid, time()+7776000);Code: Select all
setcookie('cookie_name', '', time()-7200);If I check the expiration date of my cookie in the options of my browser and I see that the date is the same before and after calling setcookie with a past time...
Somebody can explain me why?
Thanks in advance