|
蓝森林 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>
读出来的是空值。
在线等待,急!
谢谢! |
晕好象不能这样实现吧....如果这样那不乱套了 |
请把你的代码贴好来,又少括号又有中文符号,怎么知道你的问题是哪里? |
|