logout.php broke after php upgrade

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
sean
Posts: 1
Joined: Thu Aug 08, 2002 5:40 pm

logout.php broke after php upgrade

Post by sean »

I've upgrade to php-4.2.2 from 4.0.4pl1 and now I get the following error when trying to logout.

Warning: setcookie() expects parameter 3 to be long, string given in /var/www/html/cacti/logout.php on line 26

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/cacti/logout.php:26) in /var/www/html/cacti/logout.php on line 27


This worked great prior to the upgrade.

Any thought???

Thanks,
Sean
hopha
Posts: 1
Joined: Fri Aug 09, 2002 3:42 am

solution: logout.php broke after php upgrade

Post by hopha »

I had the same problem. It was solved when I changed line 26 of logout.php from

Code: Select all

setcookie(session_name(),"","","/");
to

Code: Select all

setcookie(session_name(),"",0,"/");
Hope this helps!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests