dmitrymomot/php-session

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple package for work with sessions

v1.0.1 2014-05-04 02:48 UTC

This package is auto-updated.

Last update: 2024-03-12 21:18:26 UTC


README

Simple package for work with sessions

Installation

This package is available via Composer:

{
    "require": {
        "dmitrymomot/php-session": "1.*"
    }
}

Example of usage

// 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 for more information.