Documentation

MigratingSessionHandler
in package
implements SessionHandlerInterface, SessionUpdateTimestampHandlerInterface

Migrating session handler for migrating from one handler to another. It reads from the current handler and writes both the current and new ones.

It ignores errors from the new handler.

Tags
author

Ross Motley ross.motley@amara.com

author

Oliver Radwell oliver.radwell@amara.com

Interfaces, Classes and Traits

SessionHandlerInterface
SessionUpdateTimestampHandlerInterface

Table of Contents

$currentHandler  : SessionHandlerInterface|SessionUpdateTimestampHandlerInterface
$writeOnlyHandler  : SessionHandlerInterface|SessionUpdateTimestampHandlerInterface
__construct()  : mixed
close()  : bool
destroy()  : bool
gc()  : int|false
open()  : bool
read()  : string
updateTimestamp()  : bool
validateId()  : bool
write()  : bool

Properties

$currentHandler

private SessionHandlerInterface|SessionUpdateTimestampHandlerInterface $currentHandler

$writeOnlyHandler

private SessionHandlerInterface|SessionUpdateTimestampHandlerInterface $writeOnlyHandler

Methods

__construct()

public __construct(SessionHandlerInterface $currentHandler, SessionHandlerInterface $writeOnlyHandler) : mixed
Parameters
$currentHandler : SessionHandlerInterface
$writeOnlyHandler : SessionHandlerInterface
Return values
mixed

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 $sessionData) : bool
Parameters
$sessionId : mixed
$sessionData : mixed
Return values
bool

validateId()

public validateId(mixed $sessionId) : bool
Parameters
$sessionId : mixed
Return values
bool

write()

public write(mixed $sessionId, mixed $sessionData) : bool
Parameters
$sessionId : mixed
$sessionData : mixed
Return values
bool

Search results