class SessionHandlerProxy extends AbstractProxy implements SessionHandlerInterface

Properties

protected bool $wrapper Flag if handler wraps an internal PHP session handler (using \SessionHandler). from AbstractProxy
protected bool $active from AbstractProxy
protected string $saveHandlerName from AbstractProxy
protected $handler

Methods

string
getSaveHandlerName()

Gets the session.save_handler name.

bool
isSessionHandlerInterface()

Is this proxy handler and instance of \SessionHandlerInterface.

bool
isWrapper()

Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.

bool
isActive()

Has a session started?

setActive(bool $flag)

Sets the active flag.

string
getId()

Gets the session ID.

setId(string $id)

Sets the session ID.

string
getName()

Gets the session name.

setName(string $name)

Sets the session name.

__construct(SessionHandlerInterface $handler)

No description

open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Details

in AbstractProxy at line 43
string getSaveHandlerName()

Gets the session.save_handler name.

Return Value

string

in AbstractProxy at line 53
bool isSessionHandlerInterface()

Is this proxy handler and instance of \SessionHandlerInterface.

Return Value

bool

in AbstractProxy at line 63
bool isWrapper()

Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.

Return Value

bool

in AbstractProxy at line 73
bool isActive()

Has a session started?

Return Value

bool

in AbstractProxy at line 94
setActive(bool $flag)

Sets the active flag.

Has no effect under PHP 5.4+ as status is detected automatically in isActive()

Parameters

bool $flag

Exceptions

LogicException

in AbstractProxy at line 108
string getId()

Gets the session ID.

Return Value

string

in AbstractProxy at line 120
setId(string $id)

Sets the session ID.

Parameters

string $id

Exceptions

LogicException

in AbstractProxy at line 134
string getName()

Gets the session name.

Return Value

string

in AbstractProxy at line 146
setName(string $name)

Sets the session name.

Parameters

string $name

Exceptions

LogicException

at line 24
__construct(SessionHandlerInterface $handler)

Parameters

SessionHandlerInterface $handler

at line 36
open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

at line 50
close()

{@inheritdoc}

at line 60
read($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 68
write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

at line 76
destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 84
gc($maxlifetime)

{@inheritdoc}

Parameters

$maxlifetime