04/03
2014
Wallogit.com
2017 © Pedro Peláez
a session solution for mult language development
a session solution for mult language development, (*1)
a store interface to connect with each cahce or database, (*2)
now it is surpport the memcache session store with the memacche and memcached extension, (*3)
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);
?>