public static function logout() { self::init(); self::$_userInfo = null; K_Session::remove('UserInfo', 'K_Auth'); self::$_options = array(); self::$_options['isLogin'] = false; self::$_options['isAdmin'] = false; self::$_options['accessLevel'] = 0; self::$_options['clientType'] = DMA_CT_GUEST; self::$_options['roles'] = array('guests'); K_Session::write('Options', self::$_options, 'K_Auth'); }
public static function logout() { self::init(); // Кеш для релогин триггера, удаляем кеш, так как он уже не нужен K_Cache_Manager::get('24h')->remove('RL' . self::$_userInfo['id']); self::$_userInfo = null; K_Session::remove('UserInfo', 'K_Auth'); self::$_options = array(); self::$_options['isLogin'] = false; self::$_options['isUserlogout'] = false; self::$_options['isAdmin'] = false; self::$_options['accessLevel'] = 0; self::$_options['clientType'] = DMA_CT_GUEST; self::$_options['roles'] = array('guests'); K_Session::write('Options', self::$_options, 'K_Auth'); }