0

I have a website whose homepage has 4 frames. 1 at top(horizontal) and 3 vertical below it. The middle vertical frame displays all the contents of pages when links in other frames are clicked.

I have a link in top frame to logout the user when clicked. In this link's "A" tag, i've set target to "_top" so that after logout, the homepage is displayed in full window and not confined to middle vertical frame.

Now i use PHP sessions. When the session expires, homepage should be displayed.

I want contents of linked pages to be displayed in middle vertical frame so i didn't set target to "_top" in their "A" tag but set it to "middle_frame".

When the session gets expired(but i don't know if it has expired) and if i click on any link other than logout link(present in other frames), the homepage gets displayed in middle vertical frame instead of in full window(since their target is set to middle_frame).

I want the homepage to be displayed in full window. Any ideas???

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by rajesh1158
0
<script type='text/javascript'>
<!--//
if (window != top) { top.location.replace(self.location.href); }
//-->
</script>

put a framebreaker in the head of the page you wish to ensure is n ot in the frameset. the above codescrap is one,

Edited by almostbob: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.