Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
CGI::Session::PStore#restore
restore
lib/cgi/session/pstore.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/cgi/session/pstore.rb, line 58
def restore
unless @hash
@p.transaction do
@hash = @p['hash'] || {}
end
end
@hash
end
Restore session state from the session’s PStore file.
Returns the session state as a hash.