I am using a simple cookie system to help keep my members logged in. For a few of my members, the cookies are not resetting so that they can log off. The cookie is used to fill the session back in if it gets reset.
Here is my code :
session_start();
setcookie("TheCookieName", "", time()+172800);
session_destroy();
I set the cookie the same way with the exact code :
session_start();
setcookie("TheCookieName", $theirid, time()+172800);
header ("Location: index.php");
All works for me, but it does not seem to be working with a few of my members. Any ideas?