Forms Authentication and Frames

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
 
T

Tian Min Huang

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top