thenature4u Posted November 15, 2007 Share Posted November 15, 2007 hi, I am using frames in my website. main application links are present on the top of page above mainframe, in main window. These links have target=mainframe, thus opening respective pages in mainframe. I have put the session timeout period on each page so if some user remains inactive for 10 minutes, he will be redirected to logout.php page through header. Problem is that, the logout.php page will certainly be opening in mainframe, thus the links in main parent window will remain there. What I need is that this logout.php must be opened in parent window , if any page in mainframe finds the session timedout. Thank you in advance for any help ... Quote Link to comment Share on other sites More sharing options...
axiom82 Posted November 15, 2007 Share Posted November 15, 2007 when the logout page loads, use javascript to have the logout page take over the parent frame. something like this... <script type="text/javascript">window.onload = function(){ parent.location.href = 'logout.php'; }</script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.