SessionStorageInterface::getId()

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

SessionStorageInterface::getName()

mixed getName() Returns the session name. Return Value mixed The session name

SessionStorageInterface::isStarted()

bool isStarted() Checks if the session is started. Return Value bool True if started, false otherwise

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

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

SessionStorageInterface::clear()

clear() Clear all session data in memory.

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

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

onKernelRequest(GetResponseEvent $event) Parameters GetResponseEvent $event

SessionInterface::start()

bool start() Starts the session storage. Return Value bool True if session started Exceptions RuntimeException If session fails to start.