ID: 24029 Updated by: [EMAIL PROTECTED] Reported By: don at onlygeeks dot com -Status: Open +Status: Bogus -Bug Type: Unknown/Other Function +Bug Type: *General Issues Operating System: Windows 2000 PHP Version: 4.3.1 New Comment:
1. Using foreach for your POST array is not very useful, see http://www.php.net/function.extract and http://www.php.net/import_request_variables for better ways to do it. 2. For more information how to use sessions, http://www.php.net/session And last but not least: Lot of bugs were fixed in PHP 4.3.2, update first. Previous Comments: ------------------------------------------------------------------------ [2003-06-04 22:59:27] don at onlygeeks dot com I commonly use a foreach to set my POST array into normal variables. foreach($_POST as $key=>$value) ${$key} = $value; but, when I tried this to unset sessions (code follows), PHP.EXE pops up a window and declares it has to close. foreach($_SESSION as $key) unset($_SESSION[$key]) I know I could go a better way about doing this, and I have. I just thought I would share this bit of information with you. :) Good day. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24029&edit=1