/** * expireSessionCookie() - Sends an expired session id cookie, causing the client to delete the session cookie * * @return void */ public static function expireSessionCookie() { if (self::$_unitTestEnabled) { return; } if (self::$_sessionCookieDeleted) { return; } self::$_sessionCookieDeleted = true; if (isset($_COOKIE[session_name()])) { $cookie_params = session_get_cookie_params(); setcookie(session_name(), false, 315554400, $cookie_params['path'], $cookie_params['domain'], $cookie_params['secure']); } }