note 32880 added to function.session-start

From: Date: Mon, 09 Jun 2003 22:38:42 +0000
Subject: note 32880 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-50064@lists.php.net to get a copy of this message
I am working on a site where users have to log in before they can play around. The user authentication is done with PHP and sessions. For one of the sections all content editing is done in a pop-up window. For some reason Internet Explorer was behaving as if it were being logged out of the system in the pop-up window--even though the parent window was correctly logged in. i.e. the parent window was fine, but not the new javascript window. To overcome this I added the session ID directly to the URL that was opened in the pop-up window: <?PHP $thisSession = Session_Name().'='.Session_ID(); ?> onclick="window.open('url.php?<?PHP echo $thisSession;?>', 'win', ''); return false;" Of course that's not quite all the parameters that go into the javascript, but hopefully it's enough to help someone else out. :) Thanks to Jason for the code! http://marc.theaimsgroup.com/?l=php-general&m=105519378307326&w=2 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32880 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32880&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32880&report=yes

« previous php.notes (#50064) next »