NullSessionHandler
extends AbstractSessionHandler
in package
Can be used in unit testing or in a situations where persisted sessions are not desired.
Tags
Table of Contents
- $igbinaryEmptyData : mixed
- $newSessionId : mixed
- $prefetchData : mixed
- $prefetchId : mixed
- $sessionName : mixed
- close() : bool
- destroy() : bool
- gc() : int|false
- open() : bool
- read() : string
- updateTimestamp() : bool
- validateId() : bool
- write() : bool
- doDestroy() : bool
- doRead() : string
- doWrite() : bool
Properties
$igbinaryEmptyData
private
mixed
$igbinaryEmptyData
$newSessionId
private
mixed
$newSessionId
$prefetchData
private
mixed
$prefetchData
$prefetchId
private
mixed
$prefetchId
$sessionName
private
mixed
$sessionName
Methods
close()
public
close() : bool
Return values
bool —destroy()
public
destroy(mixed $sessionId) : bool
Parameters
- $sessionId : mixed
Return values
bool —gc()
public
gc(mixed $maxlifetime) : int|false
Parameters
- $maxlifetime : mixed
Return values
int|false —open()
public
open(mixed $savePath, mixed $sessionName) : bool
Parameters
- $savePath : mixed
- $sessionName : mixed
Return values
bool —read()
public
read(mixed $sessionId) : string
Parameters
- $sessionId : mixed
Return values
string —updateTimestamp()
public
updateTimestamp(mixed $sessionId, mixed $data) : bool
Parameters
- $sessionId : mixed
- $data : mixed
Return values
bool —validateId()
public
validateId(mixed $sessionId) : bool
Parameters
- $sessionId : mixed
Return values
bool —write()
public
write(mixed $sessionId, mixed $data) : bool
Parameters
- $sessionId : mixed
- $data : mixed
Return values
bool —doDestroy()
protected
doDestroy(string $sessionId) : bool
Parameters
- $sessionId : string
Return values
bool —doRead()
protected
doRead(string $sessionId) : string
Parameters
- $sessionId : string
Return values
string —doWrite()
protected
doWrite(string $sessionId, string $data) : bool
Parameters
- $sessionId : string
- $data : string