Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am facing a problem with popup window on IE6. It always redirect to login page.
- In Web.config, I configured all files are required to login:
HTML
<authentication mode="Forms">
    <forms name="frmLogin" loginUrl="/Default.aspx" defaultUrl="/Home"></forms>
</authentication>
<authorization>
    <deny users="?" />
</authorization>

- When user input correct username and password, I use the following to provide authentication:
C#
FormsAuthentication.RedirectFromLoginPage(username, false);

By using the above code, user could view all pages.
But in IE6 & 7:
- It's ok if user view page with the same window
- But if i open it pop up window using javascript as below, it asks for authentication again:
JavaScript
window.open(url, null, "width=1050, height=600, scrollbars=yes");

Please help me to fix it.
Thanks
Posted
Updated 27-Feb-12 6:10am
v2
Comments
Ed Nutting 27-Feb-12 13:08pm    
What URL are you opening up? With IE6 & 7 I am not sure if they retain session state into new windows - does your site allow you access if you log in in one IE6 window and then open a new one and go to the site in that? If not, your issue cannot easily be solved...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900