I can't seem to destroy the following session that is set when someone logs in.
$session_name = 'test';
$secure = false;
$httponly = true;
$cookieParams = session_get_cookie_params();
session_set_cookie_params($cookieParams["lifetime"], $cookieParams["path"], $cookieParams["domain"], $secure, $httponly);
The logout script I've been using is the following:
$_SESSION = array();
setcookie(session_name(), '', time()-42000, '/');
setcookie (session_id(), "", time() - 3600);
The login script is new but I figured this existing logout script would do the trick but it does nothing to the login session. Anyone have any ideas what's wrong?