protected function getSession()
    {
        if (isset($_SESSION[$this->key])) {
            $value = $_SESSION[$this->key];

            if ($value) {
                return unserialize($value);
            }
        }
    }
protected function getSession()
    {
        if (isset($_SESSION[$this->key])) {
            $value = $_SESSION[$this->key];

            if ($value) {
                return unserialize($value);
            }
        }
    }
protected function getSession ( ) { if ( isset ( $ _SESSION [ $ this -> key ] ) ) { $ value = $ _SESSION [ $ this -> key ] ; if ( $ value ) { return unserialize ( $ value ) ; } } }
Unserializes a value from the session and returns it.

@return mixed.
Unserializes a value from the session and returns it .