Sign-up....

有关读不到Session值的问题.

以简单代码说一下问题:

1.asp (本页能打印出Session值)

<%

Session("luoou") = "这是值"

response.write Session("luoou")

response.write "<a href=readSession.asp target=_blank>读Session</a>"

%>

readSession.asp (这个页面居然没有值了)

<%

response.write Session("luoou")

%>

居然就没有值了...

[250 byte] By [msdn] at [2007-8-15 10:04:01]
# 1 Re: 有关读不到Session值的问题.

不要target=_blank

Session只在当前窗口有效的

ahhisoft at 2006-5-24 15:43:29 >
# 2 Re: 有关读不到Session值的问题.

response.write "<a href=readSession.asp target=_blank>读Session</a>"----response.write "<a href=readSession.asp>读Session</a>"

pxiaoli at 2006-5-24 15:45:15 >
# 3 Re: 有关读不到Session值的问题.

晕,晚一步

pxiaoli at 2006-5-24 15:45:40 >
# 4 Re: 有关读不到Session值的问题.

没有啊.老大们.Session是在个站有效的!

luoou2001 at 2006-5-30 22:39:26 >
# 5 Re: 有关读不到Session值的问题.

session只要不全部关闭该站的浏览器

在哪个浏览器都有效

除非超时

cnrk_net at 2006-5-30 23:14:34 >
# 6 Re: 有关读不到Session值的问题.

最终解决IIS问题!

luoou2001 at 2006-6-10 10:01:37 >
# 7 Re: 有关读不到Session值的问题.
当用户在线时session 在内存中 ,同一个用户在不同的页面见共享此域,我简单试验了一下,没有问题,可以读出,是否你的代码中的路径或文件名称有问题。
BONJOVIE at 2006-06-11 00:30:00 >

Web

All Classified