PLEASE HELP!
This is a frustrating problem because it happens intermittently. Sometimes my code works perfectly, and sometimes the following happens.
Here is the problem:
I am using PHP Sessions to maintain state for for logged in members of my site. I have a function which is called on the invocation of every page which sends visitors who are not logged in to a log in page.
In one section of the site, I employ a popup window to send a message to another user. when the popup window is closed (either manually or automatically) the session is ended for some reason and the member is sent to the login page. How can I keep this from happening? I call session_start() on every page (the popup page and the main page).
This is a frustrating problem because it happens intermittently. Sometimes my code works perfectly, and sometimes the following happens.
Here is the problem:
I am using PHP Sessions to maintain state for for logged in members of my site. I have a function which is called on the invocation of every page which sends visitors who are not logged in to a log in page.
In one section of the site, I employ a popup window to send a message to another user. when the popup window is closed (either manually or automatically) the session is ended for some reason and the member is sent to the login page. How can I keep this from happening? I call session_start() on every page (the popup page and the main page).