2017 © Pedro Peláez
 

library session

HUMBLE Session

image

humble/session

HUMBLE Session

  • Sunday, February 28, 2016
  • by arekwiertlewski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

humble-session

Latest Version Software License Build Status, (*1)

HUMBLE Session, (*2)

Install

Via Composer, (*3)

``` bash $ composer require humble/session, (*4)


## Usage Start PHP Session.

\Humble\Session\Session::start();, (*5)


Start PHP Session with custom cookie params.

\Humble\Session\Session::start(array('lifetime' => 3600));, (*6)


Create table for Pdo Session.

CREATE TABLE sessions ( id char(26) NOT NULL, time int(10) unsigned NOT NULL, data text NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;, (*7)


Start Pdo Session.

$handler = new \Humble\Session\PdoSessionHandler($pdo); \Humble\Session\Session::start(array('lifetime' => 3600), $handler);, (*8)


Get Pdo Session Handler with custom settings.

$handler = new \Humble\Session\PdoSessionHandler($pdo, [ 'tableName' => 'sessions', 'idField' => 'id', 'timeField' => 'time', 'dataField' => 'data', ]); ```, (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

28/02 2016

dev-master

9999999-dev

HUMBLE Session

  Sources   Download

MIT

The Requires

 

The Development Requires