Jump to content

HELP WITH SESSIONS IN FRAMES


thenature4u

Recommended Posts

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 ...

 

Link to comment
https://forums.phpfreaks.com/topic/77576-help-with-sessions-in-frames/
Share on other sites

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

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........

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.