标题:请教一个COOKIE的问题
取消只看楼主
lihaoru
Rank: 1
等 级:新手上路
帖 子:74
专家分:0
注 册:2004-11-11
 问题点数:0 回复次数:0 
请教一个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文件里面也找不到文件
请帮下忙 谢谢

搜索更多相关主题的帖子: COOKIE 
2005-12-13 15:10



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-37948-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.998789 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved