|
From: TheNetSnake <The...@tt...> - 2001-12-17 22:36:11
|
I found a possible solution to the session and global variables
problem using PHP 4.1 (at least, it worked in my configuration case)
adding session_unregister, and next registering it again before
setting the rignt value to admintest and current_admin solved the
problem. (admin links no more broken)
the auth.inc.php file lokks like that after the modification:
///////////////////////////////////////////////////////////////////
[....]
if($pass == $this_pass)
{
session_unregister("admintest"); //new
session_unregister("current_admin"); //lines
session_register("admintest"); //are
session_register("current_admin"); //here
$admintest = $security_hash;
$current_admin = $temp_admin;
}
[....]
///////////////////////////////////////////////////////////////////
PS: sorry for my poor english, I speak french....
--
Best regards,
TheNetSnake mailto:The...@tt...
Webmaster of www.tt-hardware.com
|