Positive, man. I'm seriously trying everything. As before, MOST people could log in. And most people STILL can, but now the girl that originally reported it to me can't get in at *all*, and there was another case of this happening to another guy, too.
Maybe if I post every damn thing to you, you will notice a flaw...
Code: Select all
$randomcookiethinger = rand(1, 999999999999999);
mysql_query("UPDATE user SET securecookie = '$randomcookiethinger' WHERE username = '$username'");
mysql_query("UPDATE user SET inactivedays = 0 WHERE username = '$username'");
setcookie("newuser", $randomcookiethinger, time()+1600);
See that? It's the login script for when people FIRST log in. She see's the FIRST page, and then after navigating it, my included security.php file stops her, as if that first page she see's ever is the only one to have a good cookie.
Code: Select all
$userz = $_COOKIE['newuser'];
if (empty($userz))
{
die('(message for not having a cookie)');
}
It's as if it's deleted or something. Any help would be appreciated... =/
Edit: And I just tried to keep it from making a new cookie with the refresh script (so every 25 minutes the user is not logged out) and still it didn't go. It has to be something with setting the actual cookie, but I'm stumped and I'm <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> because I've been working on this for 2.5 hours now, when I could've spent time coding something important.

Are sessions okay for what I want to do?