When I open a modal dialog from a parent window using a button click, everything works fine in WinXP with IE8. However, in Win7 with IE8, I encounter an issue where the modal dialog takes me to the login screen. Oddly enough, if I enter my credentials, close the dialog, and reopen it, it functions properly.
Upon investigating, I realized that the session information isn't being passed between the parent and child windows. The modal is triggered using the window.open JavaScript function.
I am hesitant to store login credentials in a cookie and then retrieve them in the modal window, as this goes against security best practices. What could be causing this discrepancy between Win7 and WinXP, and is there a way to resolve this issue?