Displaying  Source Code(s)  
 

 
Delete all cookies

--------------------------------------------------------------------------------

Description : Use the cookie collection to delete all the cookies in the users browser.

<%@ Language=VBScript %>
<%option Explicit
Response.Buffer=True
Dim objCookie
'loop through cookie collection
Response.Write "Deleting cookies...<BR>"
For Each objCookie In Request.Cookies
'delete the cookie by setting its expiration Date
'to a Date In the past
Response.Cookies(objCookie).Expires = "September 7, 1998"
Next
Response.Write "Done."
%>
 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG