/** * @param string $sessionKey */ static public function destroySession ( $sessionKey ) { if ( MMUserLogin::$isLogin ) { eZSession::unsetkey( $sessionKey ); } else { if ( isset(self::$_localSession[$sessionKey]) ) { unset(self::$_localSession[$sessionKey]); self::$_isDirty = true; } } }
/** * session/regenerate event handler, clears form token when users * logs out / in. */ public static function reset() { eZDebugSetting::writeDebug('ezformtoken', 'Reset form token', __METHOD__); eZSession::unsetkey(self::SESSION_KEY, false); }
/** * Unset the session variable $name * * @param string $name * @return bool */ function removeSessionVariable($name) { return eZSession::unsetkey($name); }