$request = quercus_servlet_request();
$username = $request->getAttribute("SPRING_SECURITY_LAST_USERNAME");
But it comes up empty.
I'm using Quercus 4.0.39 and Tomcat 8.0.26.
I'm able to get the same session value under Tomcat 7 using PHP Java Bridge, with:
$javasession = java_session();
$request = java_context()->getHttpServletRequest();
$requestedsessionid = $request->getRequestedSessionId();
$requestsession = $request->getSession();
$requestsessionid = java_values($requestsession->getId());
$userName = trim(java_values($javasession->get("SPRING_SECURITY_LAST_USERNAME")));
I tried seeing all of the session variables with:
$request = quercus_servlet_request();
$vars = $request->getAttributeNames();
print_r($vars, true);
But that came up empty.
How can I read Java session variables from within PHP using Quercus?
Thanks!
How about $request->getSession()->getAttribute?
--
You received this message because you are subscribed to the Google Groups "Quercus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caucho-quercu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.