新微赢技术网

标题: 请教一个COOKIE的问题 [打印本页]

作者: 酷aiq兒kuku    时间: 2010-1-14 01:33
标题: 请教一个COOKIE的问题
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
Dim servername
Dim number
servername = Request.Cookies("customer")("servername")
number = Request.Cookies("customer")("number")
If servername = "" Then
servername = Request.ServerVariables("SERVER_NAME")
Response.Cookies("customer")("servername") = servername
Response.Cookies("customer")("number") = 1
Response.Cookies("customer").Expires = #April 28, 2010#
Response.Cookies("customer").Domain = "http://www.xxxx.com"
Else
Response.Cookies("customer")("number") = number + 1
End If
number = Request.Cookies("customer")("number")
Response.Write(number)
%>
</body>
</html>
请问要怎么样才可以把COOKIE保存下来,我关了浏览器后就number又变为1了,在COOKIE文件里面也找不到文件
请帮下忙 谢谢




欢迎光临 新微赢技术网 (http://bbs.weiying.cn/) Powered by Discuz! X3.2