note 32880 deleted from function.session-start by tomsommer
| From: | tomsommer@php.net | Date: | Sat, 28 Aug 2004 22:59:36 +0000 |
| Subject: | note 32880 deleted from function.session-start by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75515@lists.php.net to get a copy of this message | ||
Note Submitter: emmajane at xtrinsic dot com
----
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