class NullSessionHandler extends AbstractSessionHandler

Can be used in unit testing or in a situations where persisted sessions are not desired.

Methods

open($savePath, $sessionName)

{@inheritdoc}

string
doRead(string $sessionId)

No description

bool
doWrite(string $sessionId, string $data)

No description

bool
doDestroy(string $sessionId)

No description

validateId($sessionId)

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

close()

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Details

open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

at line 40
protected string doRead(string $sessionId)

Parameters

string $sessionId

Return Value

string

at line 56
protected bool doWrite(string $sessionId, string $data)

Parameters

string $sessionId
string $data

Return Value

bool

at line 64
protected bool doDestroy(string $sessionId)

Parameters

string $sessionId

Return Value

bool

at line 32
validateId($sessionId)

{@inheritdoc}

Parameters

$sessionId

read($sessionId)

{@inheritdoc}

Parameters

$sessionId

in AbstractSessionHandler at line 101
write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

in AbstractSessionHandler at line 118
destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 24
close()

{@inheritdoc}

at line 48
updateTimestamp($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

at line 72
gc($maxlifetime)

{@inheritdoc}

Parameters

$maxlifetime