class ActionDispatch::Request::Session

def [](key)

+nil+ if the given key is not found in the session.
Returns value of the key stored in the session or
def [](key)
  load_for_read!
  key = key.to_s
  if key == "session_id"
    id&.public_id
  else
    @delegate[key]
  end
end