FileAccess Orion

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, Traits and Enums

SessionHandlerInterface
SessionUpdateTimestampHandlerInterface

Table of Contents

$currentHandler  : mixed
$writeOnlyHandler  : mixed
__construct()  : mixed
close()  : bool
destroy()  : bool
gc()  : bool
open()  : bool
read()  : string
updateTimestamp()  : bool
validateId()  : bool
write()  : bool

Properties

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

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