|
From: <php...@li...> - 2006-06-28 18:16:10
|
Hi,
> Stand-Alone - the architecture is as follows
>
> Browser - Apache - CGI - PHP - PHP/JAVA-Bridge -
> sun-jre binary
In this case the bridge doesn't create any cookies.
PHP must do that:
session_start();
if(is_null($_SESSION["var"]))
$_SESSION["var"]=new Java("java.lang.StringBuffer");
$val=$_SESSION["var"];
...your script...
session_write_close();
should work. But this way you cannot share the php
session with java servlets or JSP, of course.
BTW: Why CGI within Apache? Isn't the Apache SAPI good
enough? -- Privilege dropping isn't as effective as
strong security contexts, but I don't know if Gentoo
supports Security Enhanced Linux contexts.
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|