If you want to read all the cookies, then you can check the following example :
Suppose the following are sent to the user by the server :
Code:
<%
Response.Cookies("Continent")="Asia"
Response.Cookies("user")("subcontinent")="China"
Response.Cookies("user")("country")="China"
Response.Cookies("user")("years")="25"
%>
If you want to send all information to the user, you can do that by following way :
HTML Code:
<html>
<body>
<%
dim x,y
for each x in Request.Cookies
response.write("<p>")
if Request.Cookies(x).HasKeys then
for each y in Request.Cookies(x)
response.write(x & ":" & y & "=" & Request.Cookies(x)(y))
response.write("<br />")
next
else
Response.Write(x & "=" & Request.Cookies(x) & "<br />")
end if
response.write "</p>"
next
%>
</body>
</html>
Bookmarks