class SessionHandlerProxy extends AbstractProxy implements SessionHandlerInterface

SessionHandler proxy.

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?

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)

Constructor.

open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Details

in AbstractProxy at line line 38
string getSaveHandlerName()

Gets the session.save_handler name.

Return Value

string

in AbstractProxy at line line 48
bool isSessionHandlerInterface()

Is this proxy handler and instance of \SessionHandlerInterface.

Return Value

bool

in AbstractProxy at line line 58
bool isWrapper()

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

Return Value

bool

in AbstractProxy at line line 68
bool isActive()

Has a session started?

Return Value

bool

in AbstractProxy at line line 78
string getId()

Gets the session ID.

Return Value

string

in AbstractProxy at line line 90
setId(string $id)

Sets the session ID.

Parameters

string $id

Exceptions

LogicException

in AbstractProxy at line line 104
string getName()

Gets the session name.

Return Value

string

in AbstractProxy at line line 116
setName(string $name)

Sets the session name.

Parameters

string $name

Exceptions

LogicException

at line line 31
__construct(SessionHandlerInterface $handler)

Constructor.

Parameters

SessionHandlerInterface $handler

at line line 43
open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

at line line 51
close()

{@inheritdoc}

at line line 59
read($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line line 67
write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

at line line 75
destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line line 83
gc($maxlifetime)

{@inheritdoc}

Parameters

$maxlifetime