module Roda::RodaPlugins::Sessions::RequestMethods

def _load_session

back to the rack session cookie if configured.
Load the session by looking for the appropriate cookie, or falling
def _load_session
  opts = roda_class.opts[:sessions]
  cs = cookies
  if data = cs[opts[:key]]
    _deserialize_session(data)
  elsif (key = opts[:upgrade_from_rack_session_cookie_key]) && (data = cs[key])
    _deserialize_rack_session(data)
  end || {}
end