W3cubDocs

/Symfony 3.0

Symfony\Component\HttpFoundation\Session\Storage\Proxy\NativeProxy

class NativeProxy extends AbstractProxy

NativeProxy.

This proxy is built-in session handlers in PHP 5.3.x

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.

bool isActive()

Has a session started?

from AbstractProxy
setActive($flag)

Sets the active flag.

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()

Constructor.

Details

public string getSaveHandlerName()

Gets the session.save_handler name.

Return Value

string

public bool isSessionHandlerInterface()

Is this proxy handler and instance of \SessionHandlerInterface.

Return Value

bool

public bool isWrapper()

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

Return Value

bool False.

public bool isActive()

Has a session started?

Return Value

bool

public setActive($flag)

Sets the active flag.

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

Parameters

$flag

Exceptions

LogicException

public string getId()

Gets the session ID.

Return Value

string

public setId(string $id)

Sets the session ID.

Parameters

string $id

Exceptions

LogicException

public string getName()

Gets the session name.

Return Value

string

public setName(string $name)

Sets the session name.

Parameters

string $name

Exceptions

LogicException

public __construct()

Constructor.