菜鸟请教各位一个关于cookies的问题
<%@ Language=VBScript %>
<%
Response.Cookies("mycookies")("name")="johney"
Response.Cookies("mycookies")("email")="jonery2008@sina.com"
Response.Cookies ("name")="johney"
Response.Cookies ("email")="johney2008@sina.com"
%>
<html><body>
<%
for each cookiesname in Request.Cookies
if Request.Cookies(cookiesname).haskeys then
for each keycookies in Request.Cookies(cookiesname)
Response.Write "[dir]"&keycookies&"的内容是:"
Response.Write Request.Cookies(cookiesname)(keycookies)&"<br>"
next
else
Response.Write cookiesname&"的内容是:"&Request.Cookies (cookiesname)&"<br>"
end if
next
%>
</body>
</html>
显示结果:
[dir]email的内容是:jonery2008@sina.com
[dir]name的内容是:johney
name的内容是:johney
email的内容是:johney2008@sina.com
请问:1。为什么第一条会先显示邮件地址 而不是先显示name啊,我实在茫然啊
2。为什么刷新以后又变成了
email的内容是:johney2008@sina.com
name的内容是:johney
[dir]email的内容是:jonery2008@sina.com
[dir]name的内容是:johney
求各位高手指点啊,我求求各位了
这个脚本到底是怎么运行的啊 天哪