A simple PHP package , Provides session management functionality.
PHP 5.3 or higher
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
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();
Please refer to CONTRIBUTING for information on how to contribute to akSession