SessionHandler
class SessionHandler extends AbstractProxy implements SessionHandlerInterface (View source)
Default session handler.
Traits
Provides dependency injection friendly methods for serialization.
Properties
| protected array | $_serviceIds | An array of service IDs keyed by property name used for serialization. |
from DependencySerializationTrait |
| protected array | $_entityStorages | An array of entity type IDs keyed by the property name of their storages. |
from DependencySerializationTrait |
| protected RequestStack | $requestStack | The request stack. |
|
| protected Connection | $connection | The database connection. |
Methods
__construct(RequestStack $request_stack, Connection $connection)
Constructs a new SessionHandler instance.
open($save_path, $name)
{@inheritdoc}
read($sid)
{@inheritdoc}
write($sid, $value)
{@inheritdoc}
close()
{@inheritdoc}
destroy($sid)
{@inheritdoc}
gc($lifetime)
{@inheritdoc}
Details
__sleep()
{@inheritdoc}
__wakeup()
{@inheritdoc}
__construct(RequestStack $request_stack, Connection $connection)
Constructs a new SessionHandler instance.
open($save_path, $name)
{@inheritdoc}
read($sid)
{@inheritdoc}
write($sid, $value)
{@inheritdoc}
close()
{@inheritdoc}
destroy($sid)
{@inheritdoc}
gc($lifetime)
{@inheritdoc}