From:             sambukkaa at hotmail dot com
Operating system: win2k Advanced
PHP version:      5.0.1
PHP Bug Type:     Session related
Bug description:  trans_sid doesn't add PHPSESSID to javascript function windows.open()

Description:
------------
in php.ini file
When trans_sid=1

The url rewriter doesn't recognize the javascript function
windows.open();

if for example a popup function such as :

pop=open("somepage.php","window","toolbar=no,width=800,height=800");to
transfere the session id, one has to add it manually like this:

pop=open("somepage.php?PHPSESSID=<?=session_id()>","window","toolbar=no,width=800,height=800");}

Yes, there is an option in php.ini file named "url_rewriter.tags" and as
default it looks like this:

url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=,fieldset="

Unfortunately, there is nothing in documentations about how to add the
javascript function "open" into it.
I have tried many keywords such as open, windows.open .... and none helped
:(

It is not a bug this is only something missing in PHP 5.0.1.
This option was automatically working on versions ...3.32 I belive but
please don't take me by words.

I was sure that this function works so I have never suspected it.
I have wasted 2 weeks to find it out.

This report is similar but bot identical to the bug report #22111: URL
rewriter and Javascript
but function "windows.open" was not mentioned.


-- 
Edit bug report at http://bugs.php.net/?id=30220&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30220&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30220&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30220&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30220&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30220&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30220&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30220&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30220&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30220&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30220&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30220&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30220&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30220&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30220&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30220&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30220&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30220&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30220&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30220&r=mysqlcfg

Reply via email to