class Rack::Session::Abstract::Persisted

def commit_session?(req, session, options)

def commit_session?(req, session, options)
  if options[:skip]
    false
  else
    has_session = loaded_session?(session) || forced_session_update?(session, options)
    has_session && security_matches?(req, options)
  end
end