log-out is not working in php for a login System
<p>i am implementing a log-in system, i am sure a lot of you know what it is, i use sessions to store the user's ID, and check it if he access a page that needs the user to be logged in.<br />
But my problem is when the user clicks the log-out anchor, nothing happens i still can access the other pages as long as the current page is open.<br />
here is the code is use:<br /></p>

<pre><code>&lt;?
unset($_SESSION["ID"]);
session_destroy();
header('location: ../Home/index.php');
?&gt;
</code></pre>

<p>so anyone can help. thanks in advance.</p>
