日期:2014-05-16  浏览次数:20319 次

cookie 会消失么,又怎么才能不让他消失
dim http_hostname
http_hostname= request.servervariables("http_host")

if http_hostname="www.dfxybj.com" or http_hostname="dfxybj.com" then 
%>
  <html>
  <head>
  <title>东方雄鹰农业科技有限公司</title>
  <meta name="keywords" content="东方雄鹰农业科技有限公司" />
  <meta name="description" content="东方雄鹰农业科技有限公司" />
  </head>
   
  <FRAMESET cols=0,100% id=frame>
  <FRAME src="UntitledFrame-1" name=left >
  <FRAME name=main src="http://hh3.hnjyh.com/default.asp">
  </FRAMESET><noframes></noframes>
  </HTML>


这样跳转,cookie是不是会消失,怎么才能不让他消失。 项目里面 我是用了 js 写了一个手风琴导航,里面用到了cookie,每次刷新 都 cookie失效,效果不能体现 .如果 输入的是 http://hh3.hnjyh.com/default.asp 这个地址,那个导航效果才有效。 输入 www.dfxybj.com 这个地址,导航没有效果。。为什么 。。有没有高手指点。 项目是 ASP的

------解决方案--------------------
跨域了,cookie只能记录本域名的cookie
------解决方案--------------------
在同域名中可以使用cookie

也可以 url传参, 根据参数来 展开 收缩