Hello, everyone. I run a game. Recently I've gotten complaints that peoples' cookies have been expiring much earlier than they should be, and some people can't log in at all. My cookies are set like this:
$randomcookiethinger = rand(1, 999999999999999);
setcookie(user, $randomcookiethinger, time()+1600, "", "");
The $randomcookiethinger is used to make sure they aren't editing cookie information.
My check to see if the cookie expired is:
if (!isset($_COOKIE["user"])) die('<font color="red"><b><big>Error:</big></b></font><font color="black"><br><br>You must log in first!');
Do you have ANY idea what could be wrong?
Edit:
Changed subject to conform to forum rules.