I am using iframes in a website i am making, and i want the page to know what is going on within the iframe by using a session.
how can i make the page constantly check a session to see if you are logged in and then either display "you are not logged in" or "you are logged in as username" ?
making php constantly check for session
Moderator: General Moderators
AJAX might be able to do that. Why do you want to check constantly? Usually someone is only going to be able to do so something if the page is either refreshed or a request for a different page has been made. If those two are the case, you can check if they are logged in at that point. I wouldn't think checking constantly would be good for performance or reliability.