I have a java web application running in tomcat and another php application running in lampp. I need to use single sign on between these two applications.
What is the best method to do it ? 1. To share the session between the two servers. If so how to do it. 2. To use cookies to share data between the web servers. In this case I need to encrypt and decrypt cookies. If so what is the best method to use encryption and decryption logic which is compatible with both php and java applications.