首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

Ruby剔除IE所有cookie

2012-08-28 
Ruby删除IE所有cookierequire fileutilsclass Cookiesdef delete(dir C:\\Documents and Settings\\#{

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
?

热点排行