aminelch / akSession

a simple PHP library to manipulate Session

Home Page:https://packagist.org/packages/aminelch/ak-session

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ak-Session

A simple PHP package , Provides session management functionality.

php tested GitHub packagist

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

Licence

Packagist

About

a simple PHP library to manipulate Session

https://packagist.org/packages/aminelch/ak-session

License:MIT License


Languages

Language:PHP 100.0%