Whenever I try to log in with another user, I see that the username has not changed, this means that $ _SESSION ['username'] has not changed either, so something is wrong in my logout.PHP script
<?php session_start(); $_SESSION = array(); session_unset(); session_destroy(); ob_start(); ob_end_flush(); header("location:index.php"); ?>
source share