Session failure in. Net: when using window. Open and window. showmodaldialog in JS tutorial, note that
Source: Internet
Author: User
. Net causes session failure: Windows is used in the JS tutorial. open and window. when showmodaldialog, you must note that you have encountered a problem in the project using window. open 1. aspx, 1. use Window in Aspx. showmodaldialog open 2. aspx, 2. use Window in Aspx. open open 3. aspx, then in 3. the value in the session cannot be obtained in Aspx. So I first created a default. aspx page and saved the value to the session. In the next three pages, the values in the session were obtained respectively. The three pages are opened in different ways. The test results are as follows: open order first page second page Third page open/Open/open y Modal/modal y open/Modal/open y n Modal/Open/Modal y n open/Modal/modal y Modal/Open/open y n open/Modal/Open indicates page 1, 2, 3. Use open to open page 1, use modal to open page 2, and use open to open page 3. "Y" indicates that the value stored in the session can be obtained; "N" indicates that the value stored in the session cannot be obtained. The testing environment Win2000, ie6.0 + SP1 usually appears. win2003, ie6.0 + SP2 always appears. After opening the page in modal mode and opening the new page again, session loss always occurs on the new page. Therefore, the window is used in the script. use the window with caution when showmodaldialog opens the page. when the open page is opened, the session cannot be obtained. You can test it. I think it is a new thread when I open a page through modal and open another page? All in all, this is a bug in IE.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service