aminelch / ak-session
a simple package to manipulate session in PHP
1.0
2018-11-26 21:46 UTC
This package is auto-updated.
Last update: 2024-09-19 02:33:55 UTC
README
A simple PHP package , Provides session management functionality.
Requirement
PHP 5.3 or higher
Installation Process
Just copy Session folder somewhere into your project directory. Then include session autoloader.
require_once('/path/to/ak-session/autoload.php');
Session is also available via Composer/Packagist.
composer require aminelch/ak-session
All Methods
Load a new and unique instance from Session
$session=Session::init();
Gets datas from the session.
$session->get($key);
Stores datas in the session.
$session->set($key, $value);
Delete specific key.
$session->unset($key);
Gets all data stored in session.
$session->getAll();
Destroys all data registered to a session
$session->destroy();
Contribution
Please refer to CONTRIBUTING for information on how to contribute to akSession