How to delete all cookies on a system?

I want to delete all the cookies on the system. I am using D5 + W2k perf.

Thanks
Jammy
jlisloAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ptmcompConnect With a Mentor Commented:
Look at:
http://support.microsoft.com/support/kb/articles/Q194/7/02.ASP

uses
  ShlObj;

procedure TForm1.Button1Click(Sender: TObject);
var
  Path: String;
begin
  SetLength(Path, MAX_PATH);
  SHGetSpecialFolderPath(0, PChar(Path), CSIDL_COOKIES, false);
  Path:=String(PChar(Path));
  ShowMessage(Path);
end;

Regards, ptm.
0
 
rowisoftCommented:
Hy!

The cookies are in
Windowspath\Teporary Internet Files

In IE you can "extras", "Internetoptions" and clear the cache!

Whats the problem????

Robert
0
 
tomer_engelCommented:
not only
if there's more then one useron the computer...    
a)in the c:\windows\profiles->the profile here\ and look for the cokkiesin the sub directory
b)you can disable ALL cokie use in the internet  options menu and Advanced TAB and down the tree there's "cookie use" profile

as rowisoft   asked  .. what for???

Tomer                                  
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
jlisloAuthor Commented:
Adjusted points from 50 to 100
0
 
jlisloAuthor Commented:
Sorry! May be I didn't make it clear. I want to write a procedure in D5 to delete the cookies of W2K perf. W2k can be log on by different user and the cookies is store in different dir not like win98.

I like to know is there a Window API call I can use to delete those cookies.

I am increase the points to 100.

Thanks

Jammy
0
 
ptmcompCommented:
At http://msdn.microsoft.com/library/psdk/shellcc/shell/Functions/CSIDL.htm you can also find CSIDL_PROFILE that shows you where your profile is stored.
Has your code to work with roming profiles?? If your computer is in a network, it's not shure that profiles of other than the actually logged in user are locally stored!
0
 
jlisloAuthor Commented:
Thanks
0
 
ptmcompCommented:
Thanks, too. >;o}
0
All Courses

From novice to tech pro — start learning today.