Formagic PHP session class. Basic session implementation using PHP's default session handler.
| package | Formagic\Session |
|---|---|
| author | Florian Sonnenburg |
| since | 1.1.0 First time introduced |
__construct(string $namespace)
stringNamespace string for this Formagic form
get(string $key) : mixed
| inherited_from | \Formagic_Session_Interface::get() |
|---|
stringSession key
\Formagic_Exception_SessionException |
if value not exists |
|---|
mixedValue from session storagehas(string $key) : boolean
This method will also return a positive result if the value is empty (null, empty string false, int 0).
| inherited_from | \Formagic_Session_Interface::has() |
|---|
stringVariable key
booleanpurge() : \Formagic_Session_Interface
| inherited_from | \Formagic_Session_Interface::purge() |
|---|
\Formagic_Session_InterfaceFluent interfaceremove(string $key) : \Formagic_Session_Interface
Will silently do nothing if key does not exist.
| inherited_from | \Formagic_Session_Interface::remove() |
|---|
stringSession key
\Formagic_Session_InterfaceFluent interfaceset(string $key, mixed $value) : \Formagic_Session_Interface
| inherited_from | \Formagic_Session_Interface::set() |
|---|
stringSession key
mixedValue to be saved into session
\Formagic_Session_InterfaceFluent interface$_session : array