I am creating a logout script that closes the sessions therefore ending the variables.. I use multiple methods of trying to do this and it doesnt seem to work.. I am using:
session_start();
$_SESSION['user'] = 'nada';
$_SESSION['pass'] = 'pada';
session_unregister('user');
session_unregister('pass');
session_unset();
session_destroy();
header("Location: admin.htm");
And the variables are still there... Is this something I can adjust in php.ini to make sure the variables are only kept while a window is open rather to when internet explorer is open at all??
Or is there a better code for destroying these variables??