Session content not being deleted with either session_destroy(); or unset
Session content not being deleted with either session_destroy(); or unset I've had this issue for a couple of days and I can't seem to fix it whatever I try. There is a loginform that either redirects you to /dashboard or /admin depending on the data that is in the started session from my loginscript. /dashboard /admin This is my structure: index.php (contains header with connection.php and the html login form) dashboard.php (contains header with connection.php and some irrelevant html) admin.php (same as above) header.php (at the top of all pages, has connection.php included at the first line). connection.php (my connection script, with at the top line session_start(); login.php (my loginscript, this script is called with ajax so I have to add my entire connection class in here with session_start(); again at the top. logout.php (my logout script, it kills the session and redirects to login page this is linked to in my header.php) In my loginscript I have the following part: ...