tags:

views:

111

answers:

3
A: 

you could do the logout and the refresh the whole window with javascript.

solomongaby
+1  A: 

You can specify a target for your form which could be _parent to reload the whole page:

<form action="[..]logout[..]" method="post" target="_parent">
</form>

I'd recommend in your logout code to erase $_SESSION to make sure you have no data left in there, simply do

session_start();
session_destroy();
$_SESSION = array();
dbemerlin
A: 

Make this into a habit, after do a state change, reload the page or redirect to other page. State change is including logout, add, edit, delete, etc. By doing this, you can make sure that the action result reflected in the new page, and the user can see it.

Donny Kurnia