delete cookie

A

aidy

Hi,

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
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

aidy wrote:
| Hi,
|
| 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.


- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~ Why waste time learning, when ignorance is instantaneous?
-- Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhIHE0ACgkQbtAgaoJTgL+I5wCfXx6ZXyAgOOJjctajfMRFqdlq
5AkAn37TYiCEEHp4C0U2QaGhqInpxBTV
=FnhJ
-----END PGP SIGNATURE-----
 
R

Raveendran Perumalsamy

aidy said:
Hi,

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 -->
http://raveendran.wordpress.com/2009/09/07/ruby-accessing-ccleaner/

This article will help to delete cookies,temp files in windows machine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top