thenature4u Posted November 16, 2007 Share Posted November 16, 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 https://forums.phpfreaks.com/topic/77576-help-with-sessions-in-frames/ Share on other sites More sharing options...
PHP_PhREEEk Posted November 16, 2007 Share Posted November 16, 2007 target="_SELF" ? PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/77576-help-with-sessions-in-frames/#findComment-392676 Share on other sites More sharing options...
thenature4u Posted November 16, 2007 Author Share Posted November 16, 2007 thanks for ur reply....... if u dont mind,, please explain me clearly......... Quote Link to comment https://forums.phpfreaks.com/topic/77576-help-with-sessions-in-frames/#findComment-392677 Share on other sites More sharing options...
PHP_PhREEEk Posted November 16, 2007 Share Posted November 16, 2007 When you use a frame, you direct to the frame name. <a href="http://www.your_site.com/file.html" target="frameName">Link</a> you need <a href="http://www.your_site.com/file.html" target="_SELF">Link</a> to destroy the frame and open in the parent. PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/77576-help-with-sessions-in-frames/#findComment-392679 Share on other sites More sharing options...
thenature4u Posted November 16, 2007 Author Share Posted November 16, 2007 for this solution the user has to click on link(login again), then this login page will be opened in parent window. please try for another solution that the login page has to be directly opened in a parent window... thanks for your reply........ great help........ Quote Link to comment https://forums.phpfreaks.com/topic/77576-help-with-sessions-in-frames/#findComment-392683 Share on other sites More sharing options...
thenature4u Posted November 17, 2007 Author Share Posted November 17, 2007 DO U HAVE ANY IDEA ABOUT FRAME BREAKING USING JAVA SCRIPT...... IF U KNOW PLEASE HELP ME......... Quote Link to comment https://forums.phpfreaks.com/topic/77576-help-with-sessions-in-frames/#findComment-393316 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.