class ActionDispatch::Session::CookieStore

def extract_session_id(req)

def extract_session_id(req)
  stale_session_check! do
    sid = unpacked_cookie_data(req)["session_id"]
    sid && Rack::Session::SessionId.new(sid)
  end
end