wolves Posted June 7, 2007 Share Posted June 7, 2007 I have many values in the $_SESSION but When I open a new window using: function open_win(url,x,y){ url = window.open(""+ url +"","_blank","toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=yes, copyhistory=yes, width="+ x +", height="+ y +""); } my session is empty; BEFORE 'IN THE MAIN WINDOW' print_r($_SESSION); Array ( [foo] => 'bar' [bar] => 'foo' AFTER 'IN THE CHILD WINDOW' print_r($_SESSION); Array() note: this problem not occurs in FF. tks! Quote Link to comment https://forums.phpfreaks.com/topic/54593-php-session/ Share on other sites More sharing options...
per1os Posted June 7, 2007 Share Posted June 7, 2007 Are you making sure that session_start() is called at the top of the new page? Also check the browser settings, sometimes sessions do not carry over from page to page. Make sure you are using session cookies. Quote Link to comment https://forums.phpfreaks.com/topic/54593-php-session/#findComment-269955 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.