Php Logout issue in User panel and Admin panel
<p>I'm creating a dynamic website with php &amp; mysql. I've 2 folders, one is user and other is admin. In user folder i put user_logout.php page and in admin folder i put admin_logout.php. So that the issue is when i sign out from user panel it's successfully sign out from user panel <strong>BUT</strong> in the same time it's also sign out from Admin panel if i sign in.</p>

<p><strong>User_logout.php page</strong></p>

<pre><code>&lt;?php
include("db.php");
include("include/session.php");

$tm=date("Y-m-d H:i:s");
$q=mysql_query("UPDATE plus_user_login SET status='OFF', tm_out='$tm' WHERE 
id='$_SESSION[id]'");
echo mysql_error();

$see = $_SESSION['uname'];
session_unset($see);
session_destroy();
echo "&lt;h1&gt;&lt;center&gt;You have been successfully Log Out&lt;/h1&gt;&lt;/center&gt;&lt;br/&gt;"; 
?&gt;
</code></pre>

<p><strong>Admin_logout.php page</strong></p>

<pre><code>&lt;?php
include("include/session.php");
include("db.php");

$q=mysql_query("update plus_login set status='OFF' where id='$_SESSION[id]'");
session_unset($_SESSION['uname_ad']);
session_destroy();
echo "&lt;br/&gt;";
echo "&lt;h1&gt;You have been successfully Log Out&lt;/h1&gt;&lt;br/&gt;";

?&gt;
</code></pre>

<p>Any help about this issue?
Thanks a lot.</p>
