예제 #1
0
 /**
  * @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;
         }
     }
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
 /**
  * Unset the session variable $name
  *
  * @param string $name
  * @return bool
  */
 function removeSessionVariable($name)
 {
     return eZSession::unsetkey($name);
 }