$session→getFor()  
Get a session variable within a given namespace
Example
// Retrieve namespaced session value
$firstName = $session->getFor($this, 'firstName'); Usage
$mixed = $session->getFor($ns, string $key);Arguments
| Name | Type(s) | Description | 
|---|---|---|
| $ns | stringobject | Namespace string or object | 
| $key | string | Specify variable name to retrieve, or blank string to return all variables in the namespace. | 
Return value
mixed
$session methods and properties
API reference based on ProcessWire core version 3.0.252