找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 4868|回复: 0

[ASP] 读取所有的 cookie

[复制链接]

1214

主题

352

回帖

11

精华

管理员

菜鸟

积分
93755

贡献奖关注奖人气王精英奖乐于助人勋章

发表于 2011-6-14 21:37:40 | 显示全部楼层 |阅读模式
  1. <html>
  2. <body>
  3. <%
  4. Response.Cookies("firstname")="Alex"
  5. Response.Cookies("user")("firstname")="John"
  6. Response.Cookies("user")("lastname")="Adams"
  7. Response.Cookies("user")("country")="UK"
  8. Response.Cookies("user")("age")="25"
  9. %>
  10. <%
  11. dim x,y

  12. for each x in Request.Cookies
  13.   response.write("<p>")
  14.   if Request.Cookies(x).HasKeys then
  15.     for each y in Request.Cookies(x)
  16.       response.write(x & ":" & y & "=" & Request.Cookies(x)(y))
  17.       response.write("<br />")
  18.     next
  19.   else
  20.     Response.Write(x & "=" & Request.Cookies(x) & "<br />")
  21.   end if
  22.   response.write "</p>"
  23. next
  24. %>

  25. </body>
  26. </html>
复制代码
【VB】QQ群:1422505加的请打上VB好友
【易语言】QQ群:9531809  或 177048
【FOXPRO】QQ群:6580324  或 33659603
【C/C++/VC】QQ群:3777552
【NiceBasic】QQ群:3703755
您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

快速回复 返回顶部 返回列表