Header location redirect after logout to remove ?q=logout
<p>As it says I need to remove the  ?q=logout. First I tried this </p>

<pre><code>if ($_GET["q"] == "logout") 
{
$user-&gt;user_logout();
header("location:".$_SERVER["SERVER_NAME"]); 
}
</code></pre>

<p>The second thing i tried:</p>

<pre><code>if ($_GET["q"] == "logout") 
{ $user-&gt;user_logout();
header("location:include/redirect_home.php"); 
}
</code></pre>

<p>and in redirect_home.php</p>

<pre><code>header("location:".$_SERVER["SERVER_NAME"]);
</code></pre>

<p>In both cases the page redirects to www.mypage.com/?q=logout
I need to remove the ?q=logout after $user->user_logout(); is processed </p>
