W3cubDocs

/Symfony 4.1

SessionHandlerProxy

class SessionHandlerProxy extends AbstractProxy implements SessionHandlerInterface, SessionUpdateTimestampHandlerInterface

Properties

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

Methods

string getSaveHandlerName()

Gets the session.save_handler name.

from AbstractProxy
bool isSessionHandlerInterface()

Is this proxy handler and instance of \SessionHandlerInterface.

from AbstractProxy
bool isWrapper()

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

from AbstractProxy
bool isActive()

Has a session started?

from AbstractProxy
string getId()

Gets the session ID.

from AbstractProxy
setId(string $id)

Sets the session ID.

from AbstractProxy
string getName()

Gets the session name.

from AbstractProxy
setName(string $name)

Sets the session name.

from AbstractProxy
__construct(SessionHandlerInterface $handler)
SessionHandlerInterface getHandler()
open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

validateId($sessionId)

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

Details

string getSaveHandlerName()

Gets the session.save_handler name.

Return Value

string

bool isSessionHandlerInterface()

Is this proxy handler and instance of \SessionHandlerInterface.

Return Value

bool

bool isWrapper()

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

Return Value

bool

bool isActive()

Has a session started?

Return Value

bool

string getId()

Gets the session ID.

Return Value

string

setId(string $id)

Sets the session ID.

Parameters

string $id

Exceptions

LogicException

string getName()

Gets the session name.

Return Value

string

setName(string $name)

Sets the session name.

Parameters

string $name

Exceptions

LogicException

__construct(SessionHandlerInterface $handler)

Parameters

SessionHandlerInterface $handler

SessionHandlerInterface getHandler()

Return Value

SessionHandlerInterface

open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

Parameters

$sessionId

write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

gc($maxlifetime)

{@inheritdoc}

Parameters

$maxlifetime

validateId($sessionId)

{@inheritdoc}

Parameters

$sessionId

updateTimestamp($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data