From: M M. <mm...@ad...> - 2003-03-14 02:39:50
|
Here is what I did, though it's not the best way to fix the problem, but it works. Maybe someone here knows the best way: Open for edit the /includes/cookie.inc.php file. Change all the $date variables to 0. Sample: setcookie("status", $status, $date); to setcookie("status", $status, 0); I'm not expert in php, but I believe this sets the cookie duration to the current session. Just means you have to log in each time you open the browser. Someone else I'm sure can explain it better. Good Luck! Mike ----- Original Message ----- From: "Alan Aspuru-Guzik" <as...@ok...> To: <php...@li...> Sent: Wednesday, March 12, 2003 7:59 PM Subject: [Phphelpdesk-help] Strange error. > Hi PHPHelpdesk people, > > The software is exactly what I want, and the configuration was really > fast. I only have a 'problem'. > > I can't login as admin/admin to create new users and start using the > thing, because I get the following error: > > arning: setcookie() expects parameter 3 to be long, string given in > /var/www/html/webhelp/includes/cookie.inc.php on line 8 > > Warning: setcookie() expects parameter 3 to be long, string given in > /var/www/html/webhelp/includes/cookie.inc.php on line 9 > > Warning: setcookie() expects parameter 3 to be long, string given in > /var/www/html/webhelp/includes/cookie.inc.php on line 10 > > Warning: setcookie() expects parameter 3 to be long, string given in > /var/www/html/webhelp/includes/cookie.inc.php on line 11 > > Warning: setcookie() expects parameter 3 to be long, string given in > /var/www/html/webhelp/includes/cookie.inc.php on line 12 > > I don't understand why, because if I look at cookie.inc.php, the third > parameter is just a $date, that I can echo correctly with echo $date; > > Any ideas? > > Alan > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > Phphelpdesk-help mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help > |