Cakephp sharing auth between two applications
问题 Is there an easy way to share login information between two cakephp apps on the same domain? Basically, MainApp has a full fledged user management suite, and I just want SecondaryApp to know if a visitor is logged in or not. 回答1: Make sure both applications are configured to handle the session the same way. In other words, we want both apps to read from the same cookie and we need both apps to look in the same location for that cookie. //app\config\core.php for both apps Configure::write(