note 118222 added to function.session-unset

From: Date: Thu, 29 Oct 2015 12:37:56 +0000
Subject: note 118222 added to function.session-unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-204046@lists.php.net to get a copy of this message
The difference between both session_unset and session_destroy is as follows: session_unset just clears out the session for usage. The session is still on the users computer. Note that by using session_unset, the variable still exists. session_unset just remove all session variables. it does not destroy the session....so the session would still be active. Using session_unset in tandem with session_destroy however, is a much more effective means of actually clearing out data. As stated in the example above, this works very well, cross browser. session_destroy is destroy the session. session_destroy() to kill all session information.....This is the more secure function to use. ---- Server IP: 72.52.91.14 Probable Submitter: 182.70.97.105 ---- Manual Page -- http://php.net/manual/en/function.session-unset.php Edit -- https://master.php.net/note/edit/118222 Del: integrated -- https://master.php.net/note/delete/118222/integrated Del: useless -- https://master.php.net/note/delete/118222/useless Del: bad code -- https://master.php.net/note/delete/118222/bad+code Del: spam -- https://master.php.net/note/delete/118222/spam Del: non-english -- https://master.php.net/note/delete/118222/non-english Del: in docs -- https://master.php.net/note/delete/118222/in+docs Del: other reasons-- https://master.php.net/note/delete/118222 Reject -- https://master.php.net/note/reject/118222 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204046) next »