Link to home
Start Free TrialLog in
Avatar of wilri01
wilri01

asked on

redirect after PHP session timeout from within iFrame to top level frame

A timeout of the PHP session is detected with isset(a_session_variable), and then redirection with

    header('Location: http://www.dommain');
   exit();

But this is code is within an iFrame, and the code to reinstate the session is in the top level frame. So the whole page gets generated within this iFrame.

So does the header location have a "_target=" kind of option?  If not, what do you suggest?
SOLUTION
Avatar of HuyBD
HuyBD
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You might also consider doing it via meta tags in case the user has scripting disabled.