WriteCheckSessionHandler
in package
implements
SessionHandlerInterface
Wraps another SessionHandlerInterface to only write the session when it has been modified.
Tags
Interfaces, Classes and Traits
- SessionHandlerInterface
Table of Contents
- $readSessions : array<string|int, mixed>
- $wrappedSessionHandler : mixed
- __construct() : mixed
- close() : mixed
- {@inheritdoc}
- destroy() : mixed
- {@inheritdoc}
- gc() : mixed
- {@inheritdoc}
- open() : mixed
- {@inheritdoc}
- read() : mixed
- {@inheritdoc}
- write() : mixed
- {@inheritdoc}
Properties
$readSessions
private
array<string|int, mixed>
$readSessions
sessionId => session
$wrappedSessionHandler
private
mixed
$wrappedSessionHandler
Methods
__construct()
public
__construct(SessionHandlerInterface $wrappedSessionHandler) : mixed
Parameters
- $wrappedSessionHandler : SessionHandlerInterface
Return values
mixed —close()
{@inheritdoc}
public
close() : mixed
Return values
mixed —destroy()
{@inheritdoc}
public
destroy(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
Return values
mixed —gc()
{@inheritdoc}
public
gc(mixed $maxlifetime) : mixed
Parameters
- $maxlifetime : mixed
Return values
mixed —open()
{@inheritdoc}
public
open(mixed $savePath, mixed $sessionName) : mixed
Parameters
- $savePath : mixed
- $sessionName : mixed
Return values
mixed —read()
{@inheritdoc}
public
read(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
Return values
mixed —write()
{@inheritdoc}
public
write(mixed $sessionId, mixed $data) : mixed
Parameters
- $sessionId : mixed
- $data : mixed