Ruby删除IE所有cookie
require 'fileutils' class Cookies def delete(dir= "C:\\Documents and Settings\\#{ENV['USERNAME']}\\Cookies") # or wherever your cookies are downloaded to (can be browser specific) FileUtils.rm_rf dir end end?
发布时间: 2012-08-28 12:37:01 作者: rapoo
Ruby删除IE所有cookie
require 'fileutils' class Cookies def delete(dir= "C:\\Documents and Settings\\#{ENV['USERNAME']}\\Cookies") # or wherever your cookies are downloaded to (can be browser specific) FileUtils.rm_rf dir end end?