I am getting the following error when trying to log in:
Warning: setcookie() expects parameter 3 to be long, string given in /home/helpdesk/public_html/includes/cookie.inc.php on line 8
The cookie.inc.php is actually quite a small file and I would not think that it would cause me much grief, but it is. Below is the actual code for the cookie generation script:
<?php
// Modified by Andrew Walker (ajwalker@home.com)
$time = mktime()+$g_cookietimeout;
$date = date("l, d-M-y H:i:s", ($time));
I am getting the following error when trying to log in:
Warning: setcookie() expects parameter 3 to be long, string given in /home/helpdesk/public_html/includes/cookie.inc.php on line 8
The cookie.inc.php is actually quite a small file and I would not think that it would cause me much grief, but it is. Below is the actual code for the cookie generation script:
<?php
// Modified by Andrew Walker (ajwalker@home.com)
$time = mktime()+$g_cookietimeout;
$date = date("l, d-M-y H:i:s", ($time));
if (isset($authentication)) {
setcookie("status", $status, $date);
setcookie("user", $user, $date);
setcookie("group", $group, $date);
setcookie("authentication", $authentication, $date);
setcookie("laston", $laston, $date);
}
else {
setcookie("status", "Logged In", $date);
setcookie("user", $txtUsername, $date);
setcookie("group", $row[4], $date);
setcookie("authentication", "YES", $date);
setcookie("laston", $row[6], $date);
}
?>
Any help would be greatly appreciated.
I too am getting this same error while trying to login.
The shortest fix would be to edit a line that says:
$date = date("l, d-M-y H:i:s", ($time));
to
$date = $time;