Forms Authentication and Frames

  • Thread starter Thread starter Billy Jacobs
  • Start date Start date
B

Billy Jacobs

I have a web application which is using Forms
Authentication.

The main page of the site is a frames page. If I type in
the url to the frames page, it loads the login page inside
of the main frame instead of redirecting to the login page
by itself.

Why doesn't it redirect completely to the login page.

I have even made the Main page a .aspx page.

Are .htm and .html pages not protected by forms
authentication?


Billy Jacobs
 
Hi Billy,

Thanks for your post. I suggest that you can add the following JavaScript
in the Login.aspx to display it in the whole frame:

//-----------------code snippet-----------------
<script language="javascript">
if (window.parent != window.self) {
window.parent.location = "Login.aspx"
}
</script>
//--------------end of------------------

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
 
Back
Top