Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing frames on re direct

Status
Not open for further replies.

HebieBug

Programmer
Jan 8, 2001
354
JP
Have created a global.asa file and on session it will redirect users back to the login screen if they have not logged on. Was running some checks on it as if the users goes through a frame and the login screen will appear within the frame. Is there a way of removing the frames so that the login screen apprears on a frameless page.
 
Put this in your login page between the <head></head> tags. It will prevent the page from being framed.
Code:
<script Language=&quot;JavaScript&quot;>
<!--
if(self != top) {
  top.location = location
}
</script>

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top