I'm trying to retrieve Java session/data from PHP, however it doesn't seem to work.
I've used this (as described here:
http://quercus.caucho.com/quercus-3.1/doc/quercus.xtp#HttpServletRequestandHttpSession):
$session = $request->getSession(true);
However I get "Fatal Error: Method call 'getSession' is not allowed for a null"
The PHP is called from a servlet as follows:
session.setAttribute(...);
String url = request.getContextPath() + "/php/admin/status.php";
String redirectUrl = response.encodeRedirectURL(url);
response.sendRedirect(redirectUrl);
How can I make this work?
Thanks.