class Rack::Session::Abstract::Persisted

def set_cookie(request, response, cookie)

def set_cookie(request, response, cookie)
  if request.cookies[@key] != cookie[:value] || cookie[:expires]
    response.set_cookie(@key, cookie)
  end
end