public function get($key)
    {
        $session = $this->getSessionData();

        return $this->has($key) ? $session[$key] : null;
    }
public function get($key)
    {
        $session = $this->getSessionData();

        return $this->has($key) ? $session[$key] : null;
    }
public function get ( $ key ) { $ session = $ this -> getSessionData ( ) ; return $ this -> has ( $ key ) ? $ session [ $ key ] : null ; }
Retrieve a property from the session by its key.

@param $key
@return mixed
Retrieve a property from the session by its key .