Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Deleting Cookies
Venkat Kumar
3/23/2009 2:02:00 PM
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
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Deleting Cookies
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password