public function get($key, $default = false)
    {
        if ($this->has($key) !== false) {
            return $this->session[$key];
        } else {
            return $default;
        }
    }
public function get($key, $default = false)
    {
        if ($this->has($key) !== false) {
            return $this->session[$key];
        } else {
            return $default;
        }
    }
public function get ( $ key , $ default = false ) { if ( $ this -> has ( $ key ) !== false ) { return $ this -> session [ $ key ] ; } else { return $ default ; } }
Reads data from a session

@param string $key
@param mixed $default Default value to be returned if request key doesn't exist
@return mixed
Reads data from a session