Codefixer - ASP tutorials, resources and software
New MS SQL 2008 Available – DiscountASP.NET
Home   Articles   Resources   ASP directory   ASP Tutorials   Code Snippets   ASP Applications   Forum
Monday 6 October
MembersPro PayPal - ASP Membership software

USA & Europe Data Centers – DiscountASP.NET


ASP Partner ASP Partner ASP Partner more partners...

Returning all the cookies and their values

The code below will check what cookies your server has sent to the user's computer. It checks if the cookies have keys. (Cookies with Keys)

<%
Dim cookie, cookieKey
For each cookie in Request.Cookies
Response.write "<p>"
If Request.Cookies(cookie).HasKeys then
For each cookieKey in Request.Cookies(cookie)
Response.write cookie & ":" & cookieKey & "=" & _
Request.Cookies(cookie)(cookieKey)
Response.write "<br />"
Next
Else
Response.Write cookie & "=" & Request.Cookies(cookie) & "<br />"
End if
Response.write "</p>"
Next
%>





If you have any code snippets to share with full credit given then send an email to Codesnippets - You'll receive full credit and a link back to your site.

ASP.NET 3.5/2.0 Web Hosting: 3 Months FREE – Click Here!




About | Contact | Advertise | Feedback | Hire Us | Link

Site developed by Michael Wall - Web Design Belfast N.Ireland.
Copyright © 2000-2008. All rights reserved.

Do you intend to move to ASP.NET or have you already?
Yes will do
Have done
ASP does fine
Not a priority


Directory Software