lib/roda/plugins/sessions.rb
# Load the session by looking for the appropriate cookie, or falling
# back to the rack session cookie if configured.
Load the session by looking for the appropriate cookie, or falling
back to the rack session cookie if configured.
Load the session by looking for the appropriate cookie or falling back to the rack session cookie if configured .
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
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
Load the session by looking for the appropriate cookie, or falling
back to the rack session cookie if configured.
Load the session by looking for the appropriate cookie or falling back to the rack session cookie if configured .