From: <php...@li...> - 2006-11-08 15:33:38
|
Hi, =0A =0AI am developing on a Windows box and things appear to be working= as expected. =0A=0AOur staging box, however, is a Linux box with all the= same versions of Php, Apache and mod_jk - deploying to this box I get the = following errors when I access a particular page: =0A =0A Fatal error: = (previously declared in cookies:1) in cookies on line 2 =0A =0A Warning: = Cannot modify header information - headers already sent in setResultWith_c= ookie on line 4 =0A =0AThe Fatal error is because of the line =0A =0A$sessi= on =3D java_session(); =0A =0AThis is the first line in my php file after <= ?php. I have read the documentation on java_session and have made sure tha= t in my php.ini file the setting: output_buffering=3DOn.=0A=0AIf I login in= to my application (j2ee app) then try accessing this file again it works f= ine. I need to be able to tell whether or not I have logged in via php int= o the j2ee app, one of the reasons for me using this bridge.=0A=0AAny help = much appreciated.=0A=0APaul=0A=0A=0A=0A=0A=09=09=0A________________________= ___________________________________ =0ATry the all-new Yahoo! Mail. "The Ne= w Version is radically easier to use" =96 The Wall Street Journal =0Ahttp:/= /uk.docs.yahoo.com/nowyoucan.html |