src/SmartFactory/SessionManager.php
public function &vars()
    {
        if (empty($_SESSION[$this->getContext()])) {
            $_SESSION[$this->getContext()] = [];
        }
        
        return $_SESSION[$this->getContext()];
    }
public function &vars()
    {
        if (empty($_SESSION[$this->getContext()])) {
            $_SESSION[$this->getContext()] = [];
        }
        
        return $_SESSION[$this->getContext()];
    }
public function & vars ( ) { if ( empty ( $ _SESSION [ $ this -> getContext ( ) ] ) ) { $ _SESSION [ $ this -> getContext ( ) ] = [ ] ; } return $ _SESSION [ $ this -> getContext ( ) ] ; }
Returns the reference to the array of the session variables.

@return array
Returns the reference to the array of the session variables.

The reason of this interacfe is to wrap the standard session
handling to be able to flexibly change the implementation without
any change in the code where it is used.

Thus, we cannot use $_SESSION directly, a new implementation
might not use it at all. But we need a comfort way to set and
get the session variables including the multidimesional arrays.

Operator overloading through ArrayAccess interface supports
only one dimensional arrays, thus, it is not applicable for us.

We return the reference to the internal data. It allows setting
multidimesional arrays as follows:

```php
$smanager->vars()["user"]["name"] = "Alex";
$smanager->vars()["user"]["age"] = "22";
```

@author Oleg Schildt
Returns the reference to the array of the session variables .