/** * Destroys active session * * @access private * @static WoW_Account::DestroySession() * @category Account Manager Class * @return bool **/ private static function DestroySession() { if (!isset($_SESSION['wow_sid'])) { return true; // Already destroyed } self::$session_string = null; self::$session_hash = null; self::$sid = null; unset($_SESSION['wow_sid'], $_SESSION['wow_sid_string'], $_SESSION['wow_sid_hash'], $_SESSION['wow_logged_in']); return true; }