Forum: Ruby Deleting Cookies

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1c0045cd0f1d26711356edb37b3f14b1?d=identicon&s=25 Venkat Kumar (venkat5)
on 2009-03-23 15:05
Hi All,

My requirement is deleting cookies and cache.

I tried with the following code

CODE:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Dir.chdir("C:\\Documents and Settings\\venkat\\Local Settings\\Temporary
Internet Files\\")
target_dir_files = Dir.glob("*");

puts("###################")
puts target_dir_files
puts("###################")
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

and then to delete with File.Delete(filename)

But I am getting output as

Output
###################
AntiPhishing
Content.IE5
Content.MSO
desktop.ini
OLK10FB
###################

I need to delete the cookies and cache. Is my way correct? Is there any
other best method to do this kindly throw some light on it

Thanks,
Venkat
This topic is locked and can not be replied to.