SessionStorageInterface::getMetadataBag()

MetadataBag getMetadataBag() Return Value MetadataBag

SessionStorageInterface::getId()

string getId() Returns the session ID. Return Value string The session ID or empty

SessionStorageInterface::getBag()

SessionBagInterface getBag(string $name) Gets a SessionBagInterface by name. Parameters string $name Return Value SessionBagInterface Exceptions InvalidArgumentException If the bag does not exist

SessionStorageInterface::clear()

clear() Clear all session data in memory.

SessionStorageInterface

interface SessionStorageInterface StorageInterface. Methods bool start() Starts the session. bool isStarted() Checks if the session is started. string getId() Returns the session ID. setId(string $id) Sets the session ID. mixed getName() Returns the session name. setName(string $name) Sets the session name. bool regenerate(bool $destroy = false, int $lifetime = null) Regenerates id that represents this storage. save() Force the session to be saved and c

SessionLogoutHandler

class SessionLogoutHandler implements LogoutHandlerInterface Handler for clearing invalidating the current session. Methods logout(Request $request, Response $response, TokenInterface $token) Invalidate the current session. Details logout(Request $request, Response $response, TokenInterface $token) Invalidate the current session. Parameters Request $request Response $response TokenInterface $token

SessionListener::onKernelRequest()

onKernelRequest(GetResponseEvent $event) Parameters GetResponseEvent $event

SessionListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

SessionListener

class SessionListener implements EventSubscriberInterface Sets the session in the request. Methods onKernelRequest(GetResponseEvent $event) static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. Details onKernelRequest(GetResponseEvent $event) Parameters GetResponseEvent $event static array getSubscribedEvents() Returns an array of event names this

SessionListener

class SessionListener extends SessionListener Sets the session in the request. Methods onKernelRequest(GetResponseEvent $event) from SessionListener static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. from SessionListener __construct(ContainerInterface $container) Details onKernelRequest(GetResponseEvent $event) Parameters GetResponseEvent $event static arra