src/Core/FrameBase.php
protected function setAuth($key, $value, $expire = 86400)
    {
        return HttpAuth::factory($this->getConfig()->get('sys', 'auth'), $this->getUrlEncryptKey('auth'))->set($key, $value, $expire);
    }
protected function setAuth($key, $value, $expire = 86400)
    {
        return HttpAuth::factory($this->getConfig()->get('sys', 'auth'), $this->getUrlEncryptKey('auth'))->set($key, $value, $expire);
    }
加密会话 sys=>auth中指定是cookie/session

@param string $key key
@param string $value 值
@param int $expire 过期时间(默认一天过期)
@return bool
@throws CoreException