ID: 15645 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Session related Operating System: Redhat 7.1 PHP Version: 4.1.1 New Comment:
Ok. Sorry, but I couldn't check with the CVS version, since it was on a "production" server. Previous Comments: ------------------------------------------------------------------------ [2002-02-21 03:12:31] [EMAIL PROTECTED] This bug has been fixed in CVS. Thanks for reporting, but I think this is fixed by Sterling. ------------------------------------------------------------------------ [2002-02-20 08:30:20] [EMAIL PROTECTED] session_unset() seems to undefine non-session variables. It happens with register_globals = off. It seems to behave just like if register_globals was on. Example: $domain = $_REQUEST["domain"]; if ($domain){ echo $domain; // correct session_start(); session_unset(); echo $domain; // empty $_SESSION["domain"] = $domain; }; So the problem seem to be: if a previous session variable is named "abc" (thus $_SESSION["abc"]), session_unset() will clear $_SESSION["abc"] but also the variable $abc which should not be in relation with it since register_globals is off. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15645&edit=1