Article ID: 831678 - Last Review: October 28, 2005 - Revision: 3.0 The cookie may be lost when a window is opened from a modal or modeless HTML dialog box in Internet Explorer 6
On This PageSYMPTOMSWhen Microsoft Internet Explorer opens a new window from a
modal or modeless HTML dialog box, the new window may appear in a different
process and does not contain the cookie information from the dialog
box. CAUSEThis behavior occurs because Internet Explorer windows that
are opened from a from a modal or modeless HTML dialog box may not be opened in
the same process. WORKAROUNDTo work around this behavior, pass the window object of the
parent of the dialog box into the dialog box, and then use that object to open
the new window. STATUS This
behavior is by design. MORE INFORMATIONWhen Internet Explorer opens a window from a modal or
modeless HTML dialog box by using the showModalDialog method or by using the showModelessDialog method, Internet Explorer uses Microsoft Component Object Model
(COM) to create a new instance of the window. Typically, the window is opened
by using the first instance of an existing Internet Explorer process. This
process is different from the process that Internet Explorer uses to open a new
window by using the window.open method. When Internet Explorer opens the window in a new process, all the memory cookies are no longer available, including the session ID. Sample codeThe following sample code is an example of the workaround:Parent.aspModal.aspPage1.asp
Outlook Web AccessThis problem frequently occurs in Microsoft Outlook Web Access (OWA). To reproduce this problem in OWA, follow these steps:
APPLIES TO
| Other Resources Other Support Sites
CommunityArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top