SessionHandlerProxy
extends AbstractProxy
in package
implements
SessionHandlerInterface, SessionUpdateTimestampHandlerInterface
Tags
Table of Contents
Interfaces
- SessionHandlerInterface
- SessionUpdateTimestampHandlerInterface
Properties
- $handler : mixed
- $saveHandlerName : string
- $wrapper : bool
- Flag if handler wraps an internal PHP session handler (using \SessionHandler).
Methods
- __construct() : mixed
- close() : bool
- destroy() : bool
- gc() : int|false
- getHandler() : SessionHandlerInterface
- getId() : string
- Gets the session ID.
- getName() : string
- Gets the session name.
- getSaveHandlerName() : string|null
- Gets the session.save_handler name.
- isActive() : bool
- Has a session started?
- isSessionHandlerInterface() : bool
- Is this proxy handler and instance of \SessionHandlerInterface.
- isWrapper() : bool
- Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.
- open() : bool
- read() : string|false
- setId() : mixed
- Sets the session ID.
- setName() : mixed
- Sets the session name.
- updateTimestamp() : bool
- validateId() : bool
- write() : bool
Properties
$handler
protected
mixed
$handler
$saveHandlerName
protected
string
$saveHandlerName
$wrapper
Flag if handler wraps an internal PHP session handler (using \SessionHandler).
protected
bool
$wrapper
= false
Methods
__construct()
public
__construct(SessionHandlerInterface $handler) : mixed
Parameters
- $handler : SessionHandlerInterface
close()
public
close() : bool
Return values
booldestroy()
public
destroy(string $sessionId) : bool
Parameters
- $sessionId : string
Return values
boolgc()
public
gc(int $maxlifetime) : int|false
Parameters
- $maxlifetime : int
Return values
int|falsegetHandler()
public
getHandler() : SessionHandlerInterface
Return values
SessionHandlerInterfacegetId()
Gets the session ID.
public
getId() : string
Return values
stringgetName()
Gets the session name.
public
getName() : string
Return values
stringgetSaveHandlerName()
Gets the session.save_handler name.
public
getSaveHandlerName() : string|null
Return values
string|nullisActive()
Has a session started?
public
isActive() : bool
Return values
boolisSessionHandlerInterface()
Is this proxy handler and instance of \SessionHandlerInterface.
public
isSessionHandlerInterface() : bool
Return values
boolisWrapper()
Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.
public
isWrapper() : bool
Return values
boolopen()
public
open(string $savePath, string $sessionName) : bool
Parameters
- $savePath : string
- $sessionName : string
Return values
boolread()
public
read(string $sessionId) : string|false
Parameters
- $sessionId : string
Return values
string|falsesetId()
Sets the session ID.
public
setId(string $id) : mixed
Parameters
- $id : string
Tags
setName()
Sets the session name.
public
setName(string $name) : mixed
Parameters
- $name : string
Tags
updateTimestamp()
public
updateTimestamp(string $sessionId, string $data) : bool
Parameters
- $sessionId : string
- $data : string
Return values
boolvalidateId()
public
validateId(string $sessionId) : bool
Parameters
- $sessionId : string
Return values
boolwrite()
public
write(string $sessionId, string $data) : bool
Parameters
- $sessionId : string
- $data : string