-
I am trying the session_id function in PHP and my understing is it’s unique for each user that used the website and session id is stored in webserver? Not sure whether the session is maintained in the apache tomcat webserver.
-
However, if i have a JSP page also in the same tomcat webserver will i be able to access the session id created in php page?
I am trying the session_id function in PHP and my understing is it’s unique
Share
PHP Session ID is stored on the user’s browser, in a cookie (or as a URL parameter in case it needs to fallback).
So yes, you’ll be able to access it using Java. By default the cookie is called
PHPSESSIDBut the content of the session is not saved in the browser.
You can use the session_save_path on PHP to setup a directory you can read using Java.