RE: [PHP] solved Re: [PHP] sessions, IE and pop-up windows

From: Date: Tue, 10 Jun 2003 09:47:58 +0000
Subject: RE: [PHP] solved Re: [PHP] sessions, IE and pop-up windows
Groups: php.general 
Request: Send a blank email to php-general+get-150877@lists.php.net to get a copy of this message
> -----Original Message----- > From: Kevin Stone [mailto:kevin@helpelf.com] > Sent: 09 June 2003 23:54 > > ----- Original Message ----- > From: "Emma Jane Hogbin" <emmajane@xtrinsic.com> > To: <php-general@lists.php.net> > > > What ended up working was passing the session ID to the > pop-up window > > "manually" by including it in the function (and thus the URL). > > I just don't see how this could have solved your problem > except to do the > same thing that output buffering would have done and that is to > (essentially) queue the execution of the two scripts. Anyone care to > explain this? Well, first of all the fact that this solution works means it has nothing to do with the output buffering setting, nor whether there's a session_write_close() in the calling script (although that's good practice in this situation, and I'd probably recommend doing it a bit earlier in the script -- certainly before emitting the </body>). From the fact that this does solve the problem, we can assume that (i) the session ID is being passed in the URL and not via a cookie, and (ii) the session.use_trans_sid URL rewriter isn't rewriting the URLs in the JavaScript call. This would mean that the script called in the popup is seeing the session ID neither in the URL nor in a cookie -- i.e. not at all -- and hence the need to add the SID information manually. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#150877) next »