NullSessionHandler

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}

from AbstractSessionHandler
validateId($sessionId)

{@inheritdoc}

read($sessionId)

{@inheritdoc}

from AbstractSessionHandler
write($sessionId, $data)

{@inheritdoc}

from AbstractSessionHandler
destroy($sessionId)

{@inheritdoc}

from AbstractSessionHandler
close()

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Details

open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

validateId($sessionId)

{@inheritdoc}

Parameters

$sessionId

read($sessionId)

{@inheritdoc}

Parameters

$sessionId

write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

close()

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

gc($maxlifetime)

{@inheritdoc}

Parameters

$maxlifetime