PHP 4.3.8 Session Handling w/ JavaScript

From: Date: Thu, 12 Aug 2004 14:32:06 +0000
Subject: PHP 4.3.8 Session Handling w/ JavaScript
Groups: php.general 
Request: Send a blank email to php-general+get-193577@lists.php.net to get a copy of this message
On a server that is running PHP 4.3.6 I can use a link like this and the accompanying javascript to get a popup window in my application. After upgrading to PHP version 4.3.8 this no longer works. For some reason when you click on this link now, it looks like it creates a new session which of course is logging my users out of the application. Is there something that I can add to url_rewrite to get this to work? Is there some other setting I am missing? Do I need better JavaScript? echo ("<a href=\"javascript:popUpBI('bin_info.php')\">Bin Info</A>"); <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function popUpBI(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400');"); } // End --> </script> ## Even tried to send the PHPSESSID by hand. This did not work. echo ("<a href=\"javascript:popUpBI('bin_info.php?PHPSESSID=". $_REQUEST['PHPSESSID']."')\">Bin Info</A>"); ## Session settings in php.ini [Session] session.save_handler = files session.save_path = /tmp session.use_cookies = 1 ; session.use_only_cookies = 1 session.name = PHPSESSID session.auto_start = 1 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_divisor = 100 session.gc_maxlifetime = 1440 session.bug_compat_42 = 1 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 0 session.entropy_file = ;session.entropy_length = 16 ;session.entropy_file = /dev/urandom session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" James Hicks

« previous php.general (#193577) next »