请教:无法读取cookies

来源:百度知道 编辑:UC知道 时间:2024/05/07 20:47:26
为什么我不能读取客户端浏览器的cookies,另外我在本机的Internet临时目录中没有看到来自服务器(我用的是局域网,服务器、客户端我使用的都是本机)的任何cookies文件

我LoginWindow.asp如下:
<%@Language=VBscript%>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<title>用户登录</title>
</head>
<body background="/images/back01.gif" bgcolor="CED5D8">
<br>
<br>
<center>
<form action=login.asp method=POST>
用户名:<input type=text name=user value=<% Request.Cookies("user") %> > <br>

<br>
密 码:<input type=password name=pwd><br>
记住用户名<input type=checkbox name=CBuser checked>
记住密码 <input type=checkbox name=CBpwd><br>
<input type=submit name="" value="登录">
</center>
</form>
</body>
</html>

而我Login.asp内

<%=Request.Cookies("User")%>注意,第一个错误,没有输出,第二个,你不直接输出就要设置变量值如 user=Request.cookies("User")再把User输出
要不就直接输出

<%=Request.Cookies("user") %>

y2ej2j2j dq2 jdhqjdqhdhqxndnbffbnrjhh2jjdhj2fhjhfjhfjhk 小饼

value=<% Request.Cookies("user") %>少了等号value=<%=Request.Cookies("user") %>就对了,<%=相当于<%response.write