需要经典的asp代码来维护通用域中的cookie值 [英] need classsic asp code to maintain cookies value in a common domain

查看:69
本文介绍了需要经典的asp代码来维护通用域中的cookie值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要经典的asp代码来维护通用域中的cookie值

我已经简要解释了

假设我已经登录www.sample.net域,
Cookie值的存储方式如下
Response.Cookies("login_email")="test"

现在我已经在www.sample.com域中打开了一个页面,
在此域中,cookie值也必须存在.在这里我不想再次登录,
becoz cookie的值必须保持.

并在www.sample.biz域中打开了一个页面,在这里我还必须保持该cookie值.

IE.当我在一个域中编写cookie时,它也必须也反映到其他域中.

need classsic asp code to maintain cookies value in a common domain

I have explained in brief

suppose,i have logged in www.sample.net domain,
the cookie value is stored like this
Response.Cookies("login_email") ="test"

now i have opened a page in www.sample.com domain,
in this domain also, the cookie value must be there.here i donot want to login again,
becoz cookie value has to maintain.

and opened a page in www.sample.biz domain,here also i have to maintain that cookie value.

ie. when i write a cookie in one domain, it must be reflected to other domains also.
kindly help me.

推荐答案

<![CDATA[<%
Response.Cookies("firstname")="Alex"
%>]]>



http://www.w3schools.com/ASp/asp_cookies.asp [



http://www.w3schools.com/ASp/asp_cookies.asp[^]


这篇关于需要经典的asp代码来维护通用域中的cookie值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆