dframe / session
Session component Dframe
v4.1.8
2020-09-05 12:52 UTC
Requires
- php: >=7.3
- ext-json: *
- psr/simple-cache: ^1.0
Requires (Dev)
- dframe/dframe: ^4.1
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-10-28 16:54:52 UTC
README
Documentation - Session PHP
Composer
$ composer require dframe/session
Standalone
$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
License
Open-sourced software licensed under the MIT license