I have a site that uses session variables and frames. All my session vars work fine in the main frame where all the work is done. However, I have a link in the topframe that will allow people to either login or take them to the admin menu if they're already logged in. I use a session var to let the server know if the user has logged in.
Now my question:
How can I let the top frame know that the user is logged in (via session var?) so that when they click on the link it will skip the log in page.
It seems that even making sure that all my pages have session_start, I can't communicate with the other frame to let it know that the variable is registered.
In all my other pages, I use header ('Location: blah'); but the header function (as far as I know) can't specify a target. A META REFRESH seems to lose all my session data--or else I'm doing it wrong.
Assuming all my session code is set up properly, what do I need to do?
Hopefully I wasn't too confusing! Thanks in advance for any help.