yakeing / php_session
This is a SESSION class function package, use more easily, just a few simple functions can use it.
Fund package maintenance!
yakeing
github.com/yakeing/Documentation/blob/master/Sponsor/README.md
Installs: 91
Dependents: 0
Suggesters: 0
Security: 0
Stars: 51
Watchers: 4
Forks: 4
Type:symfony-bundle
Requires
- php: >=5.6
- ext-session: *
Requires (Dev)
- phpunit/phpunit: 5.7
README
This is a SESSION class function package, use more easily, just a few simple functions can use it.
Session Functions Table of Contents.
Travis CI badge
codecov badge
Github badge
Installation
Use Composer to install the library. Of course, You can go to Packagist to view.
$ composer require yakeing/php_session
session init
- example
$expire = 180; //Default server 180 minutes client end $id = md5('uid'); //user ID, Default automatic generation $name = "PHPSESSID"; $limiter = "private"; $handler = null; $session = new session($expire, $id, $name, $limiter, $handler);
FUNCTION
- example
$name = 'admin'; $value = 'pass'; $session->Set($name, $value); //Set up a session Value $session->Get($name); //Get a session Value $session->Delete($name); //Write off a session Value $session->Unset(); //End all session Value $session->Destroy(); //End all session Value
Sponsor
If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate.
Author
weibo: yakeing
twitter: yakeing