Class luya\testsuite\components\DummySessionHandler
Inheritance | luya\testsuite\components\DummySessionHandler |
---|---|
Implements | SessionHandlerInterface |
Available since version | 1.0.24 |
Source Code | https://github.com/luyadev/luya-testsuite/blob/master/src/components/DummySessionHandler.php |
Dummy Session Handler implements SessionHandlerInterface.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$store | luya\testsuite\components\DummySessionHandler |
Public Methods
Property Details
Method Details
public void destroy ( $id ) | ||
$id |
public function destroy($id)
{
unset($this->store[$id]);
return true;
}
public void open ( $savePath, $sessionName ) | ||
$savePath | ||
$sessionName |
public function open($savePath, $sessionName)
{
return true;
}
public void read ( $id ) | ||
$id |
public function read($id)
{
return array_key_exists($id, $this->store) ? $this->store[$id] : false;
}
public void write ( $id, $data ) | ||
$id | ||
$data |
public function write($id, $data)
{
$this->store[$id] = $data;
return true;
}