\Symfony\Component\HttpFoundation\Session\Storage\ProxySessionHandlerProxy

Summary

Methods
Properties
Constants
getSaveHandlerName()
isSessionHandlerInterface()
isWrapper()
isActive()
getId()
setId()
getName()
setName()
__construct()
getHandler()
open()
close()
read()
write()
destroy()
gc()
validateId()
updateTimestamp()
No public properties found
No constants found
No protected methods found
$wrapper
$saveHandlerName
$handler
N/A
No private methods found
No private properties found
N/A

Properties

$wrapper

$wrapper : boolean

Flag if handler wraps an internal PHP session handler (using \SessionHandler).

Type

boolean

$saveHandlerName

$saveHandlerName : string

Type

string

$handler

$handler : 

Type

Methods

getSaveHandlerName()

getSaveHandlerName() : string

Gets the session.save_handler name.

Returns

string

isSessionHandlerInterface()

isSessionHandlerInterface() : boolean

Is this proxy handler and instance of \SessionHandlerInterface.

Returns

boolean

isWrapper()

isWrapper() : boolean

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

Returns

boolean

isActive()

isActive() : boolean

Has a session started?

Returns

boolean

getId()

getId() : string

Gets the session ID.

Returns

string

setId()

setId(string  $id) 

Sets the session ID.

Parameters

string $id

Throws

\LogicException

getName()

getName() : string

Gets the session name.

Returns

string

setName()

setName(string  $name) 

Sets the session name.

Parameters

string $name

Throws

\LogicException

__construct()

__construct(\SessionHandlerInterface  $handler) 

Parameters

\SessionHandlerInterface $handler

getHandler()

getHandler() : \SessionHandlerInterface

Returns

\SessionHandlerInterface

open()

open(  $savePath,   $sessionName) 

{@inheritdoc}

Parameters

$savePath
$sessionName

close()

close() 

{@inheritdoc}

read()

read(  $sessionId) 

{@inheritdoc}

Parameters

$sessionId

write()

write(  $sessionId,   $data) 

{@inheritdoc}

Parameters

$sessionId
$data

destroy()

destroy(  $sessionId) 

{@inheritdoc}

Parameters

$sessionId

gc()

gc(  $maxlifetime) 

{@inheritdoc}

Parameters

$maxlifetime

validateId()

validateId(  $sessionId) : boolean

Checks if a session identifier already exists or not.

Parameters

$sessionId

Returns

boolean

updateTimestamp()

updateTimestamp(  $sessionId,   $data) : boolean

Updates the timestamp of a session when its data didn't change.

Parameters

$sessionId
$data

Returns

boolean