// 登录 写入 Session
Session::set('auth', true, APP_MODULE);
Session::set('uid', $user['id'], APP_MODULE);
//获取session
Session::get('auth', APP_MODULE),
//清除 Session
$module = APP_MODULE;
Session::clear($module);
Session::delete('auth',$module);
$this->redirect('/auth/user/login');//跳到登录路径
08-30
703
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)