Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sessions ending when popup windows close

Status
Not open for further replies.

TonynDory

Programmer
Jul 28, 2002
1
US
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).
 
don't use session_start???? How do you access the session vars in the new windows?

That's a strange thing appening. Are you in anywhere changing the values in the session, or using the session_destroy function? Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top