Javascript location reload without get perimeter
<p>How can I make "<code>location.reload()</code>" on php file without get perimeter ?</p>

<p>Here is an example..</p>

<p>Let's say I have PHP, and at the right top, I have logout button.</p>

<p>When user press that button, PHP will automatically re-direct to "<code>index.php?logout</code>" and after that, i will logout (unset cookie and other) and return <code>( javascript location.reload() )</code> to main page (login page)</p>

<p>Problem that I have is, when php return to login page after logout, then url is still "<code>index.php?logout</code>", so when user login back with "<code>index.php?logout</code>" page, it will automatically logout (because of ?logout perimeter on url)..</p>

<p>So how can I tackle this problem ? Anybody got any idea ?</p>

<p>I hope you all understand what i'm trying to tell you all about..</p>

<p>Thanks for reading this.. </p>
