note 84014 added to function.session-unset

From: Date: Tue, 24 Jun 2008 02:00:27 +0000
Subject: note 84014 added to function.session-unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-140757@lists.php.net to get a copy of this message
------------------------------------------------------- InterNic 20-May-2006 11:20 sometimes you might have problems even if using both session_unset and session_destroy. You have to clear the $_SESSION array. I got it working this way: session_unset(); session_destroy(); $_SESSION = array(); ------------------------------------------------------- When I used this method the session still existed in structure until the array is reset completely. This, however, has the drawback of clearing all sessions which may not be ideal in some cases. Named sessions may help in such cases. ---- Server IP: 92.48.100.16 Probable Submitter: 62.3.232.153 ---- Manual Page -- http://www.php.net/manual/en/function.session-unset.php Edit -- https://master.php.net/note/edit/84014 Del: integrated -- https://master.php.net/note/delete/84014/integrated Del: useless -- https://master.php.net/note/delete/84014/useless Del: bad code -- https://master.php.net/note/delete/84014/bad+code Del: spam -- https://master.php.net/note/delete/84014/spam Del: non-english -- https://master.php.net/note/delete/84014/non-english Del: in docs -- https://master.php.net/note/delete/84014/in+docs Del: other reasons-- https://master.php.net/note/delete/84014 Reject -- https://master.php.net/note/reject/84014 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140757) next »