ID: 11527 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Session related Operating System: FreeBSD 4.3 STABLE PHP Version: 4.0.5 New Comment:
This is not a bug. Reading the comments on http://www.php.net/manual/en/function.session-unregister.php should make this clear. Previous Comments: ------------------------------------------------------------------------ [2001-06-20 06:27:11] [EMAIL PROTECTED] Hi Jani, does your comment mean register_globals off is deprecated? I don't think so. :) ------------------------------------------------------------------------ [2001-06-19 12:26:29] [EMAIL PROTECTED] You should be using this: $somevar = "abc"; Not the globals array. Works for me with PHP 4.0.6RC3 just fine then. http://www.php.net/~andi/php-4.0.6RC3.tar.gz ------------------------------------------------------------------------ [2001-06-18 21:24:42] [EMAIL PROTECTED] > Yes, when you unregister something, > you also need to unset it if you want it > to be unset immediately. Maybe I was wrong, but "Unregister" takes place in the SECOND script, and the THIRD one still record the "unregistered" variable ???? ------------------------------------------------------------------------ [2001-06-18 08:56:39] [EMAIL PROTECTED] Yes, when you unregister something, you also need to unset it if you want it to be unset immediately. ------------------------------------------------------------------------ [2001-06-17 21:41:40] [EMAIL PROTECTED] Well I found a solution. Just replace session_unregister() by unset() statement. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=11527 Edit this bug report at http://bugs.php.net/?id=11527&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]