SessionHandlerProxy
extends AbstractProxy
in package
implements
SessionHandlerInterface, SessionUpdateTimestampHandlerInterface
Tags
Interfaces, Classes and Traits
- SessionHandlerInterface
- SessionUpdateTimestampHandlerInterface
Table of Contents
- $handler : mixed
- $saveHandlerName : string
- $wrapper : bool
- Flag if handler wraps an internal PHP session handler (using \SessionHandler).
- __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
Return values
mixed —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 —getHandler()
public
getHandler() : SessionHandlerInterface
Return values
SessionHandlerInterface —getId()
Gets the session ID.
public
getId() : string
Return values
string —getName()
Gets the session name.
public
getName() : string
Return values
string —getSaveHandlerName()
Gets the session.save_handler name.
public
getSaveHandlerName() : string|null
Return values
string|null —isActive()
Has a session started?
public
isActive() : bool
Return values
bool —isSessionHandlerInterface()
Is this proxy handler and instance of \SessionHandlerInterface.
public
isSessionHandlerInterface() : bool
Return values
bool —isWrapper()
Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.
public
isWrapper() : bool
Return values
bool —open()
public
open(mixed $savePath, mixed $sessionName) : bool
Parameters
- $savePath : mixed
- $sessionName : mixed
Return values
bool —read()
public
read(mixed $sessionId) : string|false
Parameters
- $sessionId : mixed
Return values
string|false —setId()
Sets the session ID.
public
setId(string $id) : mixed
Parameters
- $id : string
Tags
Return values
mixed —setName()
Sets the session name.
public
setName(string $name) : mixed
Parameters
- $name : string
Tags
Return values
mixed —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