Does anyone know of an effective way to delete cookies?
I have been using this:
<code>
class Cookie
def kill (dir= \
"C:\\Documents and Settings\\"+ENV['USERNAME']+"\
\Local Settings\\Temporary Internet Files")
require 'fileutils'
FileUtils.rm_rf dir
end
</code>
Does anyone know of an effective way to delete cookies?
I have been using this:
<code>
class Cookie
def kill (dir= \
"C:\\Documents and Settings\\"+ENV['USERNAME']+"\
\Local Settings\\Temporary Internet Files")
require 'fileutils'
FileUtils.rm_rf dir
end
</code>
But doesn't seem to always work
What are the error messages you get, if any?
Remember, if a file is in use, you cannot delete it (OS level lock), and
it may be possible that Internet Explorer is still running.
Another way to accomplish what you could be the win32ole library, to use
IE to delete the cookies.
Does anyone know of an effective way to delete cookies?
I have been using this:
<code>
class Cookie
def kill (dir= \
"C:\\Documents and Settings\\"+ENV['USERNAME']+"\
\Local Settings\\Temporary Internet Files")
require 'fileutils'
FileUtils.rm_rf dir
end
</code>
But doesn't seem to always work
Aidy
Hi,
Its very delayed reply for this thread. But i hope it will help for
person who are still facing the same issue.
Hi All,
URL -->
This article will help to delete cookies,temp files in windows machine.