From: <php...@li...> - 2006-09-22 15:29:50
|
Hi Peter, first of all thank you very much for this problem report. Indeed, override redirect (which stops the secure channel and opens a new socket connection to 8080 to obtain the session handle when java_session() is not the first java statement in a script) doesn't work anymore in 3.1.8. The reason is that it now needs a security token which has been destroyed after the first Java() statement. The pure PHP implementation of the PHP/Java Bridge code doesn't implement override redirect, so this feature isn't portable anyway. Please use java_session() as the first Java() statement in a script, for example: <? ... $session = java_session(); $ob = new Java(...); ?> Since the handle is cached, the following will also work: <? java_session(); $ob=new Java(...); $session = java_session(); ?> However, I will make a patch available which fixes this problem. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |