Symfony\Component\HttpFoundation\Session\SessionInterface
Interface for the session.
- Author: Drak <drak@zikula.org>
Synopsis
interface SessionInterface
{
- // methods
- public Boolean start()
- public string getId()
- public void setId()
- public mixed getName()
- public void setName()
- public Boolean invalidate()
- public Boolean migrate()
- public void save()
- public Boolean has()
- public mixed get()
- public void set()
- public array all()
- public void replace()
- public mixed remove()
- public void clear()
- public Boolean isStarted()
- public void registerBag()
- public SessionBagInterface getBag()
- public MetadataBag getMetadataBag()
Methods
public
- all() — Returns attributes.
- clear() — Clears all attributes.
- get() — Returns an attribute.
- getBag() — Gets a bag instance by name.
- getId() — Returns the session ID.
- getMetadataBag() — Gets session meta.
- getName() — Returns the session name.
- has() — Checks if an attribute is defined.
- invalidate() — Invalidates the current session.
- isStarted() — Checks if the session was started.
- migrate() — Migrates the current session to a new session id while maintaining all session attributes.
- registerBag() — Registers a SessionBagInterface with the session.
- remove() — Removes an attribute.
- replace() — Sets attributes.
- save() — Force the session to be saved and closed.
- set() — Sets an attribute.
- setId() — Sets the session ID
- setName() — Sets the session name.
- start() — Starts the session storage.