How to share session between php app and Java EE app?
问题 We may replace a PHP app with a Java EE app, but the problem is we wanna replace the modules one by one, which means two apps would co-exist and communicate with each other. So is it possible to share the user session between the 2 apps? Or use a cookie to solve the problem? 回答1: Save your session data to a database with session_set_save_handler(). UPDATE Efficiency wise it would be very mininal, the difference from reading a text file to querying a database (presumably using an existing