Bill_Draving Posted March 30, 2007 Share Posted March 30, 2007 I'm sure there is some obvious reason but... I am in window one (of one) and I popup a second window. Everything is fine. When the popup window closes the entire session in window one is destroyed!! I have tried everything from named sessions to caches, etc.. This does not happen when i start out with two windows open?? Any help on this??? Bill Quote Link to comment Share on other sites More sharing options...
fert Posted March 30, 2007 Share Posted March 30, 2007 sessions end when the browser window closes Quote Link to comment Share on other sites More sharing options...
Bill_Draving Posted April 2, 2007 Author Share Posted April 2, 2007 BUT, Why would the sessions variables disappear in the opener window??? I would think the session variables would not be affected in other windows... Quote Link to comment Share on other sites More sharing options...
only one Posted April 2, 2007 Share Posted April 2, 2007 id advise using cookies if your going to send it too a different window or you could have the popup url have the variables as example.php?valriable=examlpe.... Quote Link to comment Share on other sites More sharing options...
per1os Posted April 2, 2007 Share Posted April 2, 2007 Store the sessionhash in a cookie (which it should be if the php is configured right) after the window closes and you reload the first page you need to call session_start() and session_id() with that cookie of the session hash. I am not sure if it will work but it is worth a shot. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.