class CGI::Session::PStore

def restore

Returns the session state as a hash.

Restore session state from the session's PStore file.
def restore
  unless @hash
    @p.transaction do
      @hash = @p['hash'] || {}
    end
  end
  @hash
end