use think\facade\Session;//引入session类文件
dump(Session::set('student.name',"cyg"));//设置session数组.第一个参数是变量 ,第二个是值哦 dump(Session::get('student.name'));//获取session数组
因为tp6源码中是static定义的函数啦.
use think\facade\Session;//引入session类文件
dump(Session::set('student.name',"cyg"));//设置session数组.第一个参数是变量 ,第二个是值哦 dump(Session::get('student.name'));//获取session数组
因为tp6源码中是static定义的函数啦.
微信扫码登录