Forms Authentication and Frames

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Billy Jacobs

    #1

    Forms Authentication and Frames

    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

  • Mary Chipman

    #2
    Re: Forms Authentication and Frames

    On Thu, 4 Sep 2003 11:09:48 -0700, "Billy Jacobs" <billnospam@csa .com>
    wrote:
    [color=blue]
    >Are .htm and .html pages not protected by forms
    >authentication ?[/color]

    Only ASP.NET resources are -- all other resources have to be protected
    by ACL's etc.

    -- Mary
    MCW Technologies


    Comment

    • Tian Min Huang

      #3
      RE: Forms Authentication and Frames

      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="javas cript">
      if (window.parent != window.self) {
      window.parent.l ocation = "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.

      Comment

      Working...