dframe/session

Session 组件 Dframe

维护者

详细信息

github.com/dframe/session

主页

源代码

安装: 110

依赖: 3

建议: 0

安全: 0

星标: 0

关注者: 2

分支: 0

v4.1.8 2020-09-05 12:52 UTC

This package is auto-updated.

Last update: 2024-09-28 16:39:52 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

php framework dframe logo

文档 - Session PHP

Composer

$ composer require dframe/session

独立

$this->session = new \Dframe\Session\Session('name');
$session = new \Dframe\Session\Session('HashSaltRandomForSession');
$session->register();                        // Set session_id and session_time - default 60
$session->authLogin();                        // Return true/false if session is registered
$session->set($key, $value);                   // set $_SESSION[$key] = $value;
$session->get($key, $or = null);                // get $_SESSION[$key];
$session->remove($key);                       // unset($_SESSION[$key]);
$session->end();                            // session_destroy

许可

开源软件,使用MIT 许可证