Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Session timeout when using the Global.asa


Message #1 by "Larry Rosenzweig" <rosenzl@o...> on Fri, 11 Jan 2002 16:59:46
I have a calendar which has multiple asp pages. The main page is a logon 

screen. The global.asa validates the logon info. Once all is validated, it 

goes to a frames page, which contains a calendar on the left frame and a 

schedule on the right frame. When the session timeout occurs, the logon 

screen appears in the right frame and the left frame still shows the 

calendar.  How can get it to just show the logon screen page which is 

centered, to show up without any frame pages?  When you initially enter 

the site, it only shows up with the logon page (centered). Then upon 

successfull validation, the frames pages appear.



Thanks,



Larry  
Message #2 by "Dominic Chambers" <dominic.chambers@b...> on Sun, 13 Jan 2002 19:55:00
Okay, I assume that the right frame get the logon page because that is the 

one you are using after the session has timed out, and you return the 

logon page if the session has timed out?



You need to return an invisible page that redirects the browsers parent 

frame to your logon page instead of returning that logon page directly. 

For example:



<html>

  <head>

    <script language="JavaScript">

      <!--

        function redirect()

        {

          // I can't remember if that is the correct syntax so check it

          // for yourself

          window.parent.location = "myLoginPage.html";

        }

      //-->

    </script>

  </head>

  <body onload="redirect();">

  </body>

</html>



If using JavaScript is an issue then you might be able to use HTTPs 

redirect header instead, but I can't remember if that header supports the 

target attribute (e.g. parent). 





Hope that helps, Dominic.



p.s. now I have done my good deed maybe someone will answer my query :-)


  Return to Index