note 91452 deleted from java.examples-basic by sobak

From: Date: Sun, 04 Dec 2016 07:08:28 +0000
Subject: note 91452 deleted from java.examples-basic by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207992@lists.php.net to get a copy of this message
Note Submitter: anto dot justus at gmail dot com ---- Session sharing with php and java ------------------------------------------ <?php require_once("java/Java.inc"); $session = java_session(); ?> <HTML> <TITLE>PHP and JSP session sharing</title> <BODY> <?php if(is_null(java_values($session->get("counter")))) { $session->put("counter", 1); } $counter = java_values($session->get("counter")); print "HttpSession variable \"counter\": $counter<br>\n"; $session->put("counter", $counter+1); ?> <a href="sessionSharing.jsp">JSP page</a> </BODY> </HTML>

« previous php.notes (#207992) next »