打开一个新窗口中创建一个新的会话 [英] Opening a new window create a new session
问题描述
我们正在升级从Windows XP的Internet Explorer 6中的基于Web的软件到Windows 7的Internet Explorer 9。
We are upgrading a web-based software from Windows XP with Internet Explorer 6 to Windows 7 with Internet Explorer 9.
此外,WebBrowser对象使用一个WPF应用程序中。
Furthermore, a webbrowser object is used inside a WPF application.
我们现在有一个奇怪的行为,具有URL打开一个窗口时(像window.open(URL指令))时,ASP会话丢失和新的窗口中出现了新的工作从头开始会话。
We now have a strange behavior, when opening a window with a url (with an instruction like window.open(url)), the ASP session is "lost" and the new window works with a new from scratch session.
我通过避免无用的窗户,解决了这个问题,相反,我修改当前窗口的位置。但我想明白为什么这种行为!
I solved this issue by avoiding useless windows opening and instead, I modify the location of the current window. But I would like to understand why this behavior !
你有什么线索?
感谢您。
推荐答案
这可能会在你的域名是事业通过简单的不同,如果你是在www.yoursite.com运行,但窗口点yoursite.com再新的会话将被创建。一个讨厌的一个赶上所以看出来了吧。
This could be cause by a simple different in your domain name, if you are running on www.yoursite.com but the window points to yoursite.com then a new session will be created. A nasty one to catch so look out for it.
此外,你可能有一些调试code漂浮在某处一个页面,这可能会导致大量的头划伤,清理出一个session变量用于测试实例。点别的事情,虽然检查,长镜头,但你永远不知道。
Additionally you might have some debug code floating around in a page somewhere, this can cause a lot of head scratching, clearing out a session variable for testing for instance. Something else to check for, long shot though but you never know.
这篇关于打开一个新窗口中创建一个新的会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!