From: Kevin M. S. <sh...@cg...> - 2002-11-11 12:48:01
|
I corrected this for myself ages ago. I don't recall the reasons...my notes are non-existent. Here is my cookie.inc.php for you to compare. (Apache/1.3.26 (Unix) PHP/4.2.3) I hope this helps... -----BEGIN <?php $date = time()+$g_cookietimeout; if (isset($authentication)) { setcookie("status", $status, $date); setcookie("username", $username, $date); setcookie("group", $group, $date); setcookie("authentication", $authentication, $date); setcookie("laston", $laston, $date); } else { setcookie("status", "Logged In", $date); setcookie("username", $txtUsername, $date); setcookie("group", $row[4], $date); setcookie("authentication", "YES", $date); setcookie("laston", $row[6], $date); } ?> -----END On Sun, 10 Nov 2002, Net Access Hosting Sales Team wrote: > Hey, I just downloaded your script and was testing it out and got a > error. I am not sure why or what happened but the error is a cookie > related error. > > Warning: setcookie() expects parameter 3 to be long, string given in > /home/netacces/public_html/phphelpdesk/includes/cookie.inc.php on line 8 > > Warning: setcookie() expects parameter 3 to be long, string given in > /home/netacces/public_html/phphelpdesk/includes/cookie.inc.php on line 9 > > Warning: setcookie() expects parameter 3 to be long, string given in > /home/netacces/public_html/phphelpdesk/includes/cookie.inc.php on line > 10 > > Warning: setcookie() expects parameter 3 to be long, string given in > /home/netacces/public_html/phphelpdesk/includes/cookie.inc.php on line > 11 > > Warning: setcookie() expects parameter 3 to be long, string given in > /home/netacces/public_html/phphelpdesk/includes/cookie.inc.php on line > 12 > > > > If you have any Idea I would like to try and use this script. > > Thanks, > Net Access > > |