NEWSZW_HZH_BEGIN-->
< %@ LANGUAGE="VBscript" % >
< %
Chunfeng=Request.Cookies("Chunfeng")
' 初始设置页面 , 读取名字为 Chunfeng 的 Cookie 值 .
If Chunfeng ="" then
' 判断是否已经存在 Cookie 值 .
Response.Cookies("Chunfeng")="x"
Response.Cookies("Chunfeng").Expires=#January 01, 2010#
Response.Redirect "Chunfeng.asp"
' 如果不存在 , 就创建并设置 Cookie, 并转到页面 Chunfeng.asp. 当下次访问时 , 因为存在 Cookie 值 , 就不会再转到 Chunfeng.asp 页面 .
Else
'rest of the page
' 如果 Cookie 已经存在 , 则访问者将执行页面中剩余的代码 .
End if
% >
查看更多关于如何让用户再次访问我的网站时不需再提交相关的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did27421