ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!



Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





ASP Source Code:
<%
' This is always a good idea when dealing with
' cookies!  Especially cookies and a redirect!
Response.Buffer = True
' This script should delete all the cookies our site has
' ever set on a given client's machine... at least I
' think it should!
Dim Cookie
' For when I wasn't specifying a domain!
For Each Cookie In Response.Cookies
	Response.Cookies(Cookie) = "this must be something!"
	Response.Cookies(Cookie).Expires = Date() - 1
Next ' Cookie
' For now that I am!
For Each Cookie In Response.Cookies
	Response.Cookies(Cookie) = "this must be something!"
	Response.Cookies(Cookie).Domain = ".asp101.com"
	Response.Cookies(Cookie).Expires = Date() - 1
Next ' Cookie
' Bounce users back to the display page
Response.Redirect("cookie.asp") 
%>

Back the the Sample Output

Back to the Sample Index


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers