https://github.com/dmitrymomot/php-session
Simple package for work with sessions
https://github.com/dmitrymomot/php-session
Last synced: 22 days ago
JSON representation
Simple package for work with sessions
- Host: GitHub
- URL: https://github.com/dmitrymomot/php-session
- Owner: dmitrymomot
- License: mit
- Archived: true
- Created: 2014-04-25T23:47:46.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-04T02:50:07.000Z (about 11 years ago)
- Last Synced: 2025-03-16T06:12:50.967Z (2 months ago)
- Language: PHP
- Size: 242 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
php-session
===========Simple package for work with sessions
## Installation
This package is available via Composer:
```json
{
"require": {
"dmitrymomot/php-session": "1.*"
}
}
```## Example of usage
```php
// Set driver for session
// available: native, cookie
// as default - native
Session::$default = 'deriver_name'// set session
Session::instance()->set('session_name', 'session value');// get session
Session::instance()->get('session_name', 'default value');// delete session
Session::instance()->set('session_name', 'session value');
```## License
The MIT License (MIT). Please see [License File](https://github.com/dmitrymomot/php-session/blob/master/LICENSE) for more information.