Yasuo Ohgaki wrote:

>Hans Spath wrote:
>
>>When register_globals is enabled, you can't unregister session variables 
>>via unset($_SESSION['varname']). How are php coders supposed to write 
>>clean code with that new autoglobal variable, when they have to have the 
>>same configuration at every server they run their scripts?
>>I've written a bug report (#15551) which was classified as 'Bogus'. I 
>>don't think ignoring that problem is a good solution, so please review 
>>that bug report. Thanks.
>>- Hans Spath
>
>Use session_unset().
>It does not create any inconsistency, not like session_register(), etc.

Then it should be changed in the documentation (ref.session....) where it 
says don't use session_unregister($var) (Caution block), use 
unset($_SESSION[$var]) (Example 3).

- Hans Spath


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to