the following code will delete all the cookies, even the once that aren't deleted in IE ( internet explorer 8 ) from : tools, internet option, delete.
as a result of running the code the user will not be recognized or logged in to sites like youtube and various forums.
naturally, the user can relog in to those sites.
alternitively, on windows xp the user can delete the cookies manually :
start, run, cookies, delete all .txt files only.
:cheers:
as a result of running the code the user will not be recognized or logged in to sites like youtube and various forums.
naturally, the user can relog in to those sites.
Code:
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
For Each f In Directory.GetFiles("C:\Documents and Settings\" & Environment.UserName & "\Cookies", "*.txt", SearchOption.AllDirectories)
File.Delete(f)
Next
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub
' * delete cookies that ie doesn't delete from it's tools, delete
End Class
alternitively, on windows xp the user can delete the cookies manually :
start, run, cookies, delete all .txt files only.
:cheers: