Class luya\testsuite\components\DummySessionHandler

Inheritanceluya\testsuite\components\DummySessionHandler
ImplementsSessionHandlerInterface
Available since version1.0.24
Source Code https://github.com/luyadev/luya-testsuite/blob/master/src/components/DummySessionHandler.php

Dummy Session Handler implements SessionHandlerInterface.

Public Properties

Hide inherited properties

Property Type Description Defined By
$store luya\testsuite\components\DummySessionHandler

Property Details

Hide inherited properties

$store public property
public $store = []

Method Details

Hide inherited methods

close() public method

public void close ( )

                public function close()
{
    return true;
}

            
destroy() public method

public void destroy ( $id )
$id

                public function destroy($id)
{
    unset($this->store[$id]);
    return true;
}

            
gc() public method

public void gc ( $maxlifetime )
$maxlifetime

                public function gc($maxlifetime)
{
    return true;
}

            
open() public method

public void open ( $savePath, $sessionName )
$savePath
$sessionName

                public function open($savePath, $sessionName)
{
    return true;
}

            
read() public method

public void read ( $id )
$id

                public function read($id)
{
    return array_key_exists($id, $this->store) ? $this->store[$id] : false;
}

            
write() public method

public void write ( $id, $data )
$id
$data

                public function write($id, $data)
{
    $this->store[$id] = $data;
    return true;
}