o80/session

Handle session start and provide some security.

dev-master 2015-04-02 08:57 UTC

This package is not auto-updated.

Last update: 2024-04-13 14:50:29 UTC


README

This PHP library provide some security around the stealing of session.

Build Status Latest Unstable Version License

How-to

Installation

With Composer, you simply need to require o80/session:

{
...
    "require": {
        "o80/session": "dev-master"
    }
...
}

Starting session

Replace session_start(); by $session = new o80\Session(); $session->start();.

Using session

Nothing changed :

// Writing
$_SESSION['x'] = 'foo';

// Reading
$bar = $_SESSION['x'];

Contribution

Just fork the project, make your changes, ask for pull request ;-).