From: <php...@li...> - 2006-06-27 19:12:41
|
Hi, > I am unable to use "java_session" in my PHP scripts > and dont have any clues why... probably because the browser does not accept the cookie for some reason. PHP scripts usually send a PATH value / but tomcat creates a PATH value /webapp. If the webapp is JavaBridge, tomcat creates a /JavaBridge cookie, so that sessions from the JavaBridge webapp do not interfere with sessions from myBridge for example. When running the back-end within a servlet engine or AS , the servlet engine or AS generates page templates for PHP, PHP fills in the PHP-based content and returns the result to the browser. The "CGI subcomponent within a servlet engine or AS" is only special case of the above: the servlet forks off a PHP FastCGI server when it starts and passes control to the PHP server which in turn passes control over to the servlet engine. The servlet engine then returns the page template to PHP, PHP passes the page back to the servlet which finally passes the page to the browser. > with SUPHP What is SUPHP? > Problem: I tried the example script for session > usage withput success. What happens when you click on the sessionSharing.jsp link at the bottom of the page does that increase the value? And what are the properties of the generated cookie, what's the PATH value for example? > new timestamps everytime). I tried named sessions and > unnamed sessions, > added php session_start() but nothing works..... I am not sure what you mean with "named sessions", but java_session() at the beginning of the script is all you need. The session_start(); $_SESSION is only syntactic sugar which uses java_session() internally. You've mentioned that session sharing works when running in apache. Do you use the servlet back-end or the standalone back-end? The standalone back-end uses the PATH value /, so I guess the PATH value is the problem. However, there is no technical difference between the CGI component running within a servlet engine or AS, a FastCGI component associated with a servlet engine or AS or a Apache/IIS front-end associated with a servlet engine or AS. They all rely on the servlet/AS back-end to generate the page template and then pass it and the added PHP content to the client. Can you please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and set the java.log_level to 5 and attach the generated log and the value of the generated cookie (PATH, etc.) there? If you run a FastCGI server please also generate a trace: export X_JAVABRIDGE_OVERRIDE_HOSTS=/ strace -s1024 php-cgi -b127.0.0.1:9667 2>protocol.log Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |