Teklif the doc (take a look at that page, it says quite some interesting stuff ;-) ),
session_unregister() unregisters the
global variable named name from the
current session.
Bir diziden bir girişi kaldırmak için kullanabilirsiniz unset
. Bu yüzden, bunun yerine
session_unregister('my_var');
Sen kullanabilirsiniz
unset($_SESSION['my_var']);
Hangi durumda da, sanırım, şu anlama gelir:
unset($_SESSION[$serverWideUniqueIdCode]);
Still, you probably don't want to call unset
on the whole $_SESSION
variable. Quoting the doc a second time :
Note: If $_SESSION
(or
$HTTP_SESSION_VARS
for PHP 4.0.6 or
less) is used, use unset()
to
unregister a session variable. Do not
unset()
$_SESSION
itself as this will
disable the special function of the
$_SESSION
superglobal.