蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年8月25日 8:28

不同站点之间cookies的传递问题请教

domain.asp (其中一个站点的写cookies页面):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%response.Buffer=true%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<%
Response.Cookies("spuni".Domain="76gz.com")
Response.Cookies("spuni"("webdomain"="000000")
Response.Cookies("spuni"("money"="0000000000")
response.Redirect("http://www.76gz.com/wcookies.asp")
%>
</body>
</html>


wcookies.asp  76gz.com 站点的读cookies的页面)

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>

<%
haa=Request.Cookies("webdomain")
money=Request.Cookies("money")
response.Write("'"&money&"'")
%>
</body>
</html>
读出来的是空值。

在线等待,急!
谢谢!

晕好象不能这样实现吧....如果这样那不乱套了

请把你的代码贴好来,又少括号又有中文符号,怎么知道你的问题是哪里?




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com