session is not destroying
<p>i created a login page in php and used session in it... after checking the condition i am setting the session as</p>

<pre><code>session_register("myusername");
session_register("mypassword"); 
header("location:login_success.php");
</code></pre>

<p>and in the     <code>login_succes.php</code> i have the code as </p>

<pre><code>&lt;? 
session_start();
if(!session_is_registered(myusername)){
header("location:main_login.php");
}
?&gt;
&lt;html&gt;
&lt;body&gt;
&lt;h2&gt;&lt;?php session_start(); echo $_SESSION['myusername']; ?&gt;
Welcome to hell&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>and in     <code>logout.php</code> the code is </p>

<pre><code>&lt;? 
session_start();
session_destroy();
?&gt;
</code></pre>

<p>the issue i am facing is on login 2nd time i am getting 1st user name itself in the output.</p>
