|
- <html>
- <body>
- <%
- Response.Cookies("firstname")="Alex"
- Response.Cookies("user")("firstname")="John"
- Response.Cookies("user")("lastname")="Adams"
- Response.Cookies("user")("country")="UK"
- Response.Cookies("user")("age")="25"
- %>
- <%
- 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>
复制代码 |
|