Storage\Proxy\SessionHandlerProxy (Component\HttpFoundation\Session)
Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy
class SessionHandlerProxy extends AbstractProxy implements SessionHandlerInterface
SessionHandler proxy.
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) Constructor. | ||
open($savePath, $sessionName) {@inheritdoc} | ||
close() {@inheritdoc} | ||
read($sessionId) {@inheritdoc} | ||
write($sessionId, $data) {@inheritdoc} | ||
destroy($sessionId) {@inheritdoc} | ||
gc($maxlifetime) {@inheritdoc} |
Details
public string getSaveHandlerName()
Gets the session.save_handler name.
public bool isSessionHandlerInterface()
Is this proxy handler and instance of \SessionHandlerInterface.
public bool isWrapper()
Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.
public bool isActive()
Has a session started?
public string getId()
Gets the session ID.
public setId(string $id)
Sets the session ID.
public string getName()
Gets the session name.
public setName(string $name)
Sets the session name.
public __construct(SessionHandlerInterface $handler)
Constructor.
public open($savePath, $sessionName)
{@inheritdoc}
public close()
{@inheritdoc}
public read($sessionId)
{@inheritdoc}
public write($sessionId, $data)
{@inheritdoc}
public destroy($sessionId)
{@inheritdoc}
public gc($maxlifetime)
{@inheritdoc}
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.html