India Forums .Info

Discuss Cars, Bikes, Jobs, Romance, Marriage, Jobs, Real Estate, Programming and more..
It is currently Wed Dec 03, 2008 3:44 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Delete all cookies
PostPosted: Fri Feb 23, 2007 11:35 am 
Offline
Newbie

Joined: Tue Feb 06, 2007 4:50 pm
Posts: 37
Delete all cookies

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

Code:
<%@ 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."
%>


sourcecodesworld.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO