在弹出窗口中丢失会话 [英] Losing Session in a Popup Window

查看:73
本文介绍了在弹出窗口中丢失会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们打开一个窗口(使用客户端jscript,即。

window.open(" /Site/Popup.aspx?...",...))来自Page1 .aspx,被称为

页面Popup.aspx无法访问Page1.aspx中存在的会话变量

。 IIS日志显示(如下所示)显示在Popup.aspx中没有

ASP.NET_SessionId cookie。


问题是这个机制有效99%的用户。

这个用户一直有这个问题。你可以从日志中看到
,这个用户在IE6上并且有Windows NT。


有关如何调试或解决此问题的任何想法? br />

#Fields:日期时间c-ip s-port cs-method cs-uri-stem cs-uri-query

sc-status cs(用户 - 代理人)cs(Cookie)

2003-08-22 16:57:51 278.179.45.71 443 GET /Site/Page1.aspx

action =编辑%20a%20Driver 200

Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1)

ASP.NET_SessionId = yarvyqz3hl11yda3vouk2x55

2003 -08-22 16:57:59 278.179.45.71 443 GET /Site/Popup/Lookup_Orgs.aspx

Level1Text = BROTHERS%20CO 200

Mozilla / 4.0 +(兼容) ; + MSIE + 6.0; + Windows + NT + 5.1) -

2003-08-22 16:58:12 278.179.45.71 443 GET /Site/logout.aspx - 200

Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1)

ASP.NET_SessionId = yarvyqz3hl11yda3vouk2x55

When we open a window (using client-side jscript ie.
window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called
page Popup.aspx does not have access to the Session variables present
in Page1.aspx. The IIS Log shows (listed below) shows that the
ASP.NET_SessionId cookie is not present in Popup.aspx.

The thing is that this mechanism works for 99% of our users. There is
this one user that is consistently having this problem. As you can
see from the log, this user is on IE6 and has Windows NT.

Any ideas on how to debug this or resolve this?

#Fields: date time c-ip s-port cs-method cs-uri-stem cs-uri-query
sc-status cs(User-Agent) cs(Cookie)
2003-08-22 16:57:51 278.179.45.71 443 GET /Site/Page1.aspx
action=Edit%20a%20Driver 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
ASP.NET_SessionId=yarvyqz3hl11yda3vouk2x55
2003-08-22 16:57:59 278.179.45.71 443 GET /Site/Popup/Lookup_Orgs.aspx
Level1Text=BROTHERS%20CO 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) -
2003-08-22 16:58:12 278.179.45.71 443 GET /Site/logout.aspx - 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
ASP.NET_SessionId=yarvyqz3hl11yda3vouk2x55

推荐答案

Kevin,


如果用户使用IE6,那么你是什么你说?

这是一个设置问题。

或随机一些做一些不要

??

谢谢


" Kevin Spencer" <柯*** @ DIESPAMMERSDIEtakempis.com>在留言中写道

news:uE ************** @ TK2MSFTNGP10.phx.gbl ...
Kevin,

If the user is using IE6, what are you saying?
Is it a setup issue.
or a random some do some don''t
??
Thanks

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
你不能依靠用户用于跨浏览器实例共享会话的浏览器。有些人,有些人不做。

-
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
我学的越多,我知道的越少。

Jimmy Junatas <ジ*********** @ usbank.com>在消息中写道
新闻:4d ************************** @ posting.google.c om ...
You can''t count on the browser that the user is using to share Sessions
across browser instances. Some do, and some don''t.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
The more I learn, the less I know.

"Jimmy Junatas" <ji***********@usbank.com> wrote in message
news:4d**************************@posting.google.c om...
当我们从Page1.aspx打开一个窗口(使用客户端jscript即。
window.open(" /Site/Popup.aspx?...",...))时,被调用的页面Popup.aspx无法访问Page1.aspx中存在的Session变量。 IIS日志显示(如下所示)显示Popup.aspx中不存在
ASP.NET_SessionId cookie。

这个机制适用于99%的用户。有一个用户一直有这个问题。你可以从日志中看到,这个用户在IE6上并且有Windows NT。

有关如何调试或解决此问题的任何想法吗?

#字段:日期时间c-ip s-port cs-method cs-uri-stem cs-uri-query
sc-status cs(User-Agent)cs(Cookie)
2003-08-22 16 :57:51 278.179.45.71 443 GET /Site/Page1.aspx
动作=编辑%20a%20Driver 200
Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1)
ASP.NET_SessionId = yarvyqz3hl11yda3vouk2x55
2003-08-22 16:57:59 278.179.45.71 443 GET /Site/Popup/Lookup_Orgs.aspx
Level1Text = BROTHERS%20CO 200
Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1) -
2003-08-22 16:58:12 278.179.45.71 443 GET /Site/logout.aspx - 200 Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1)
ASP.NET_SessionId = yarvyqz3hl11yda3vouk2x55
When we open a window (using client-side jscript ie.
window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called
page Popup.aspx does not have access to the Session variables present
in Page1.aspx. The IIS Log shows (listed below) shows that the
ASP.NET_SessionId cookie is not present in Popup.aspx.

The thing is that this mechanism works for 99% of our users. There is
this one user that is consistently having this problem. As you can
see from the log, this user is on IE6 and has Windows NT.

Any ideas on how to debug this or resolve this?

#Fields: date time c-ip s-port cs-method cs-uri-stem cs-uri-query
sc-status cs(User-Agent) cs(Cookie)
2003-08-22 16:57:51 278.179.45.71 443 GET /Site/Page1.aspx
action=Edit%20a%20Driver 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
ASP.NET_SessionId=yarvyqz3hl11yda3vouk2x55
2003-08-22 16:57:59 278.179.45.71 443 GET /Site/Popup/Lookup_Orgs.aspx
Level1Text=BROTHERS%20CO 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) -
2003-08-22 16:58:12 278.179.45.71 443 GET /Site/logout.aspx - 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
ASP.NET_SessionId=yarvyqz3hl11yda3vouk2x55




我没有说他提到的具体浏览器(我不知道)b $ b特别知道我E6)。我说的是:我不能指望用户用来在浏览器实例之间共享Sessions的

浏览器。

一些[浏览器]做,有些不。如果他知道他的所有用户都要使用相同的浏览器,那么这可能是一种可行的方法,但是因为他没有b $ b,所以''没有。


-

HTH,


Kevin Spencer

Microsoft MVP

..Net开发人员
http://www.takempis .com

我学的越多,我知道的就越少。


" MS News(MS ILM)" <平方*********** @ hotmail.com>在消息中写道

news:eU ************** @ TK2MSFTNGP12.phx.gbl ...
I''m not saying anything regarding the specific browser he mentioned (I don''t
know specifically about IE6). I''m saying what I said: You can''t count on the
browser that the user is using to share Sessions across browser instances.
Some [browsers] do, and some don''t. If he knew that all of his users were
going to use the same browser, this might be a viable method, but since he
doesn''t, it''s not.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.

"MS News (MS ILM)" <sq***********@hotmail.com> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl...
Kevin,
如果用户正在使用IE6,你在说什么?
这是一个设置问题。
或随机一些做一些不要
??
谢谢

凯文斯宾塞 <柯*** @ DIESPAMMERSDIEtakempis.com>在消息中写道
新闻:uE ************** @ TK2MSFTNGP10.phx.gbl ...
Kevin,

If the user is using IE6, what are you saying?
Is it a setup issue.
or a random some do some don''t
??
Thanks

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
你不能指望浏览器用户用于跨浏览器实例共享会话。有些人,有些人不做。

-
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
我学的越多,我知道的越少。

Jimmy Junatas <ジ*********** @ usbank.com>在消息中写道
新闻:4d ************************** @ posting.google.c om ...
You can''t count on the browser that the user is using to share Sessions
across browser instances. Some do, and some don''t.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
The more I learn, the less I know.

"Jimmy Junatas" <ji***********@usbank.com> wrote in message
news:4d**************************@posting.google.c om...
当我们从Page1.aspx打开一个窗口(使用客户端jscript即。
window.open(" /Site/Popup.aspx?...",...))时,被调用的页面Popup.aspx无法访问Page1.aspx中存在的Session变量。 IIS日志显示(如下所示)显示Popup.aspx中不存在
ASP.NET_SessionId cookie。

这个机制适用于99%的用户。有一个用户一直有这个问题。你可以从日志中看到,这个用户在IE6上并且有Windows NT。

有关如何调试或解决此问题的任何想法吗?

#字段:日期时间c-ip s-port cs-method cs-uri-stem cs-uri-query
sc-status cs(User-Agent)cs(Cookie)
2003-08-22 16 :57:51 278.179.45.71 443 GET /Site/Page1.aspx
动作=编辑%20a%20Driver 200
Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1)
ASP.NET_SessionId = yarvyqz3hl11yda3vouk2x55
2003-08-22 16:57:59 278.179.45.71 443 GET /Site/Popup/Lookup_Orgs.aspx
Level1Text = BROTHERS%20CO 200
Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1) -
2003-08-22 16:58:12 278.179.45.71 443 GET /Site/logout.aspx - 200 Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1)
ASP.NET_SessionId = yarvyqz3hl11yda3vouk2x55
When we open a window (using client-side jscript ie.
window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called
page Popup.aspx does not have access to the Session variables present
in Page1.aspx. The IIS Log shows (listed below) shows that the
ASP.NET_SessionId cookie is not present in Popup.aspx.

The thing is that this mechanism works for 99% of our users. There is
this one user that is consistently having this problem. As you can
see from the log, this user is on IE6 and has Windows NT.

Any ideas on how to debug this or resolve this?

#Fields: date time c-ip s-port cs-method cs-uri-stem cs-uri-query
sc-status cs(User-Agent) cs(Cookie)
2003-08-22 16:57:51 278.179.45.71 443 GET /Site/Page1.aspx
action=Edit%20a%20Driver 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
ASP.NET_SessionId=yarvyqz3hl11yda3vouk2x55
2003-08-22 16:57:59 278.179.45.71 443 GET /Site/Popup/Lookup_Orgs.aspx
Level1Text=BROTHERS%20CO 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) -
2003-08-22 16:58:12 278.179.45.71 443 GET /Site/logout.aspx - 200
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
ASP.NET_SessionId=yarvyqz3hl11yda3vouk2x55





Kevin,


他说如下:
Kevin,

He said the following:
问题在于,这种机制适用于99%的用户。有一个用户一直有这个问题。你可以从日志中看到,这个用户在IE6上并且有Windows NT。


由于这只有一个用户在IE6上,我对你说的话感到困惑。


谢谢。

" Kevin Spencer" <柯*** @ DIESPAMMERSDIEtakempis.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
The thing is that this mechanism works for 99% of our users. There is
this one user that is consistently having this problem. As you can
see from the log, this user is on IE6 and has Windows NT.
Since this only one user is on IE6, I got confused to what you said.

Thank you.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
我'我没有说他提到的具体浏览器(我b $ b不知道具体的IE6)。我在说什么:你不能指望用户用来在浏览器实例之间共享Sessions的浏览器。
一些[浏览器]这样做,有些人不这样做。如果他知道他的所有用户都打算使用相同的浏览器,这可能是一种可行的方法,但是因为他没有,所以不是。
< HTH,

凯文斯宾塞
微软MVP
.Net开发人员
http://www.takempis.com
我学的越多,我知道的就越少。

; MS News(MS ILM)" <平方*********** @ hotmail.com>在消息中写道
新闻:eU ************** @ TK2MSFTNGP12.phx.gbl ...
I''m not saying anything regarding the specific browser he mentioned (I don''t know specifically about IE6). I''m saying what I said: You can''t count on the browser that the user is using to share Sessions across browser instances.
Some [browsers] do, and some don''t. If he knew that all of his users were
going to use the same browser, this might be a viable method, but since he
doesn''t, it''s not.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
The more I learn, the less I know.

"MS News (MS ILM)" <sq***********@hotmail.com> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl...
Kevin,
如果用户正在使用IE6,你在说什么?
这是一个设置问题。
或随机一些做一些不要
??
谢谢

凯文斯宾塞 <柯*** @ DIESPAMMERSDIEtakempis.com>在消息中写道
新闻:uE ************** @ TK2MSFTNGP10.phx.gbl ...
Kevin,

If the user is using IE6, what are you saying?
Is it a setup issue.
or a random some do some don''t
??
Thanks

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
你不能指望浏览器用户用来共享
You can''t count on the browser that the user is using to share



跨浏览器实例的会话。有些人,有些人不做。

-
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
我学的越多,我知道的越少。

Jimmy Junatas <ジ*********** @ usbank.com>在消息中写道
新闻:4d ************************** @ posting.google.c om ...
>当我们从Page1.aspx打开一个窗口(使用客户端jscript,即。
> window.open(" /Site/Popup.aspx?...",...))
>页面Popup.aspx无法访问Session变量
present>在Page1.aspx中。 IIS日志显示(如下所列)显示
> Popup.aspx中不存在ASP.NET_SessionId cookie。
>
>问题是这种机制适用于99%的用户。
是>这一个用户一直有这个问题。你可以
>从日志中看,这个用户在IE6上并且有Windows NT。
>
>有关如何调试或解决此问题的任何想法?
>
> #Fields:日期时间c-ip s-port cs-method cs-uri-stem cs-uri-query
> sc-status cs(User-Agent)cs(Cookie)
> 2003-08-22 16:57:51 278.179.45.71 443 GET /Site/Page1.aspx
> action =编辑%20a%20Driver 200
> Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1)
> ASP.NET_SessionId = yarvyqz3hl11yda3vouk2x55
> 2003-08-22 16:57:59 278.179.45.71 443 GET
/Site/Popup/Lookup_Orgs.aspx> Level1Text = BROTHERS%20CO 200
> Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1) -
> 2003-08-22 16:58:12 278.179.45.71 443 GET /Site/logout.aspx - 200
> Mozilla / 4.0 +(兼容; + MSIE + 6.0; + Windows + NT + 5.1)
> ASP.NET_SessionId = yarvyqz3hl11yda3vouk2x55


Sessions across browser instances. Some do, and some don''t.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
The more I learn, the less I know.

"Jimmy Junatas" <ji***********@usbank.com> wrote in message
news:4d**************************@posting.google.c om...
> When we open a window (using client-side jscript ie.
> window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called
> page Popup.aspx does not have access to the Session variables present > in Page1.aspx. The IIS Log shows (listed below) shows that the
> ASP.NET_SessionId cookie is not present in Popup.aspx.
>
> The thing is that this mechanism works for 99% of our users. There is > this one user that is consistently having this problem. As you can
> see from the log, this user is on IE6 and has Windows NT.
>
> Any ideas on how to debug this or resolve this?
>
> #Fields: date time c-ip s-port cs-method cs-uri-stem cs-uri-query
> sc-status cs(User-Agent) cs(Cookie)
> 2003-08-22 16:57:51 278.179.45.71 443 GET /Site/Page1.aspx
> action=Edit%20a%20Driver 200
> Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
> ASP.NET_SessionId=yarvyqz3hl11yda3vouk2x55
> 2003-08-22 16:57:59 278.179.45.71 443 GET /Site/Popup/Lookup_Orgs.aspx > Level1Text=BROTHERS%20CO 200
> Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) -
> 2003-08-22 16:58:12 278.179.45.71 443 GET /Site/logout.aspx - 200
> Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
> ASP.NET_SessionId=yarvyqz3hl11yda3vouk2x55





这篇关于在弹出窗口中丢失会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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