PDA

View Full Version : Conflict by cookie EDITOR_loginpage.php and PHP-Nuke forum


loconel
15th of May 2005 (Sun), 07:23
Hi

When I login in my Exhibit Editor a cookie is installed in my Xp Cookies directory.
When I then open my PHP-Nuke Forum site no Forums are shown.
After deleting the cookie and restarting my PHP-Nuke forums all forms are shown again

How can I prevent this?

regards, Louis

Pekka
15th of May 2005 (Sun), 07:56
That is a cookie name confict.

In EDITOR_loginpage.php change the cookie name:

setcookie ("user", $value, time()+3600*24*30*12*10,'/');

to

setcookie ("EE_adminuser_47", $value, time()+3600*24*30*12*10,'/');

in EDITOR_logout.php do the same, change

setcookie ("user", "", time() -9999999);

to

setcookie ("EE_adminuser_47", "", time() -9999999);

and in SECURITY_check_authorization.php change

$stored_session_id = @$_COOKIE['user'];

to

$stored_session_id = @$_COOKIE['EE_adminuser_47'];

Pekka
15th of May 2005 (Sun), 08:05
Oh, and one more:

in SCRIPT_menu.php

$stored_session_id = @$HTTP_COOKIE_VARS['user'];

to

$stored_session_id = @$HTTP_COOKIE_VARS['EE_adminuser_47'];

loconel
15th of May 2005 (Sun), 08:52
Works great

Thank you

Louis