Gary Williams
02-15-2008, 03:47 PM
Hi All,
I have an application that if a user incorrectly logs in, a cookie is set on their PC. If they make 3 failed attempts, my application reads this cookie and prevents further attempts. If this happens, the user emails/phones me, I reset their access on my application and talk them through deleting the cookie on their PC.
Has anyone got a script that I can email to the user which they run on their PC to hunt out and delete my specific cookie for them?
I found the following script on the net, but can't get it to work.
Any idea's?
Regards
Gary
=================================
'*************************
'StopGoogle.vbs
'Programmer: Steve Perkins
'08/09/2006
'Purpose: Deletes all Google cookies for logged-in user
'Usage: wscript StopGoogle.vbs
'*************************
Set wShell = CreateObject("WScript.Shell")
Set environment = wShell.Environment("Process")
Set fso = CreateObject("Scripting.FileSystemObject")
file_path = "C:\Documents and Settings\" & environment("USERNAME") & "." &
environment("COMPUTERNAME") & "\Cookies"
WScript.echo(file_path)
Set folder = fso.getFolder(file_path)
For Each objFile in folder.Files
If Instr(objFile.Name, "google") Then
fso.DeleteFile(objFile)
'WScript.echo("File deleted")
End If
Next
====================================
I have an application that if a user incorrectly logs in, a cookie is set on their PC. If they make 3 failed attempts, my application reads this cookie and prevents further attempts. If this happens, the user emails/phones me, I reset their access on my application and talk them through deleting the cookie on their PC.
Has anyone got a script that I can email to the user which they run on their PC to hunt out and delete my specific cookie for them?
I found the following script on the net, but can't get it to work.
Any idea's?
Regards
Gary
=================================
'*************************
'StopGoogle.vbs
'Programmer: Steve Perkins
'08/09/2006
'Purpose: Deletes all Google cookies for logged-in user
'Usage: wscript StopGoogle.vbs
'*************************
Set wShell = CreateObject("WScript.Shell")
Set environment = wShell.Environment("Process")
Set fso = CreateObject("Scripting.FileSystemObject")
file_path = "C:\Documents and Settings\" & environment("USERNAME") & "." &
environment("COMPUTERNAME") & "\Cookies"
WScript.echo(file_path)
Set folder = fso.getFolder(file_path)
For Each objFile in folder.Files
If Instr(objFile.Name, "google") Then
fso.DeleteFile(objFile)
'WScript.echo("File deleted")
End If
Next
====================================