Re: sessions, IE and pop-up windows

From: Date: Mon, 09 Jun 2003 21:23:16 +0000
Subject: Re: sessions, IE and pop-up windows
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-150805@lists.php.net to get a copy of this message
Try adding the SessionID to the URL. openEdit("add=event&amp;cellid=10&amp;<?PHP echo Session_Name ().'='.Session_ID();?>"); or a little better: $thisSession = Session_Name().'='.Session_ID(); openEdit("add=event&amp;cellid=10&amp;<?PHP echo $thisSession;?>"); Then of course the editsmall.php must still do a session_start somewhere. -- Jason k Larson Emma Jane Hogbin wrote:
On Mon, Jun 09, 2003 at 02:27:50PM -0600, Kevin Stone wrote:
I'll bet you're using an onLoad command to launch the popup aren't you. Use Output Buffering to keep stdout from flushing before the parent script dies. If my assumption about onLoad is correct then that'll solve your problem.
Um not "onload" the link looks like this: <a onclick='openEdit("add=event&amp;cellid=10"); return false;' onkeypress='openEdit("add=event&amp;cellid=10"); return false;'href='edit.php?add=event&amp;cellid=10'>Add an event</a> and the javascript looks like this: // its goal is to EDIT any type of content in a pop-up window function openEdit(params) {
        var url = "editsmall.php?"+params;
var ewin = window.open(url, "ewin", "width=500,height=300,toolbar=0,resizable=1,scrollbars=1"); ewin.focus(); }


« previous php.general (#150805) next »