SessionInterface::invalidate()

bool invalidate(int $lifetime = null) Invalidates the current session. Clears all session attributes and flashes and regenerates the session and deletes the old session from persistence. Parameters int $lifetime Sets the cookie lifetime for the session cookie. A null value will leave the system settings unchanged, 0 sets the cookie to expire with browser session. Time is in seconds, and is not a Unix timestamp. Return Value bool True if session invalidated, false if error

SessionInterface::getMetadataBag()

MetadataBag getMetadataBag() Gets session meta. Return Value MetadataBag

SessionInterface::has()

bool has(string $name) Checks if an attribute is defined. Parameters string $name The attribute name Return Value bool true if the attribute is defined, false otherwise

SessionInterface::getId()

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

SessionInterface

interface SessionInterface Interface for the session. Methods bool start() Starts the session storage. 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 invalidate(int $lifetime = null) Invalidates the current session. bool migrate(bool $destroy = false, int $lifetime = null) Migrates the current session to a new session id while maintainin

SessionInterface::getBag()

SessionBagInterface getBag(string $name) Gets a bag instance by name. Parameters string $name Return Value SessionBagInterface

SessionInterface::all()

array all() Returns attributes. Return Value array Attributes

SessionInterface::clear()

clear() Clears all attributes.

SessionHelper::hasFlash()

hasFlash($name) Parameters $name

SessionHelper::getName()

string getName() Returns the canonical name of this helper. Return Value string The canonical name