src/Core/User.php
public function getAttribute($sessionKey) {
        return
                isset($_SESSION[$this->GetKey($sessionKey)]) ?
                $_SESSION[$this->GetKey($sessionKey)] :
                false;
    }
public function getAttribute($sessionKey) {
        return
                isset($_SESSION[$this->GetKey($sessionKey)]) ?
                $_SESSION[$this->GetKey($sessionKey)] :
                false;
    }
public function getAttribute ( $ sessionKey ) { return isset ( $ _SESSION [ $ this -> GetKey ( $ sessionKey ) ] ) ? $ _SESSION [ $ this -> GetKey ( $ sessionKey ) ] : false ; }
Get a value in current session from a given key.
@param sring $sessionKey
The key to use to find the associated value. The set of values is found in
the class(es) \Puzzlout\Framework\Enums\SessionKeys (Framework) or
\Application\YourApp\Resources\Enums\SessionKeys (Application)
@return mixed
The value can any type: int, string, array, object instance of any class.
If value is not set, then return false.
Get a value in current session from a given key .