frameset - session expired

Posted on 2005-05-14
Last Modified: 2009-07-29

I have 3 frames-pages in asp that are executed from one frameset asp file. (top, left, main)
The problem is that when the login session is timed-out the login page appears in the main-frame and the left frame is still showing.
Is it possible somehow to have the login page (in case of a session time-out) to appear without the left frame?
Question by:Refael
    LVL 36

    Accepted Solution

    If you want the login page to break out of ALL the frames including the main frameset, and you can somehow link to it again later, you would put this code inside head section of login page:

    <script language="javascript" type="text/javascript">
    if (self.location != top.location) {
       self.location = top.location;

    Although keep in mind this breaks out of ALL frames and also needs Javascript enabled browser.

    If you only want the left frame to stop showing, how exactly is your frame structured? Does the top frame span the whole width of the screen and has the left and main frames below it, or is the left frame span the whole height and hae top frame and main frame to the right of it?
    LVL 2

    Expert Comment

    let me clearly understand ur problem

    u would like to have some kind of logout like page .
    eg u must be having link called LOGOUT so when user clicks on that link u want completely new page on ur screen
    if this is the case u can below solution

     <a target="_parent"  href= url where u want to navigate>
    Logout </a>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now