unset session php
<p>According to the manual "Do NOT unset the whole $_SESSION with unset($_SESSION) as this will <strong>disable the registering of session variables</strong> through the $_SESSION superglobal."</p>

<pre><code>&lt;?php
session_start();

$_SESSION['name'] = 'my_name';

unset($_SESSION);

echo $_SESSION['test'] = 'ok';
</code></pre>

<p>So according to the manual, the above code should not register the last statement. But the code outputs the string 'ok'. What is going on here? </p>
