phalapi / session
PhalApi 2.x 扩展类库:Session 操作工具
dev-master
2019-10-04 06:45 UTC
This package is not auto-updated.
Last update: 2024-10-28 11:50:47 UTC
README
为PhalApi封装的库
使用方法:
//建议写到config/di.php里面 \PhalApi\DI()->session = new \PhalApi\Session\Lite(); // or: $di->session = new \PhalApi\Session\Lite(); //设置: \PhalApi\DI()->session->你的自定义字段名称=值; //获取: $val = \PhalApi\DI()->session->你的自定义字段名称; //销毁: \PhalApi\DI()->session->destroy() //获取session_id $val = \PhalApi\DI()->session->session_id;