2017 © Pedro Peláez
 

library onesession

a session solution for mult language development

image

iflamed/onesession

a session solution for mult language development

  • Tuesday, March 4, 2014
  • by iflamed
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

onesession_php

a session solution for mult language development, (*1)

StoreInterface

a store interface to connect with each cahce or database, (*2)

version 1.0.0

now it is surpport the memcache session store with the memacche and memcached extension, (*3)

useage

array(
        array(
                'host'=>'127.0.0.1',
                'port'=>11211,
                'weight'=>10,
        ),
    ),
    'useMemcached'=>false,
);
$keyPrefix='localhost';
$storeClassName = 'MemcacheStore';
Onesession\HttpSession::init($storeClassName,$cacheConfig,$keyPrefix);
session_start();
$_SESSION['serialisation'] = 'should be in json';
if (!isset($_SESSION['a'])) {
    $_SESSION['a'] = 0;
}
$_SESSION['a']++;
var_dump($_SESSION);
?>

The Versions

04/03 2014

dev-master

9999999-dev

a session solution for mult language development

  Sources   Download

MIT

by Avatar iflamed

04/03 2014

v1.0

1.0.0.0

a session solution for mult language development

  Sources   Download

MIT

by Avatar iflamed