dev-master
9999999-devA session abstraction library
MIT
The Requires
- php >=5.3
- bistro/common *
by Dave Widmer
session bistro
0.1.0
0.1.0.0A session abstraction library
MIT
The Requires
- php >=5.3
- bistro/common *
by Dave Widmer
session bistro
Wallogit.com
2017 © Pedro Peláez
A session abstraction library
A Session library for PHP 5.3+. Allows different storage engines to be used., (*1)
2 Storage engines are included in the library., (*2)
This driver uses the php native $_SESSION array to handle the session data., (*3)
``` php $session = new \Bistro\Session\Native;, (*4)
$timeout = $session->get('timeout');, (*5)
if ($timeout === null) { $session->set('timeout', time() + 43200); }, (*6)
### MockArray
There is also a MockArray storage engine to help with unit testing session data.
The MockArray session doesn't save state across "requests".
``` php
$data = array(
'test' => "Session data",
'goes' => "Here"
)
$session = new \Bistro\Session\MockArray($data);
$session->has('test'); // true
$missing = $session->get('missing'); // null
Check \Bistro\Session\Session for all of the public methods that are available
to a session storage engine., (*7)
A session abstraction library
MIT
session bistro
A session abstraction library
MIT
session bistro