Am trying to make my cookies timeout unlimited. When users login it usually log them out after sometimes in that same day. Presently am out of Ideas, i need help on how to fix it.
This is the code below.
$CookieExpire = 86400;
$time = 30 * $CookieExpire;
$time = time() + $time;
$key = $username . date('mY');
$key = strtoupper(md5($key));
setcookie ("sessionkey", "$key", "$time");
setcookie ("user", "$username", "$time");
setcookie ("password", "$password", "$time");