CakePHP session sharing between two apps, on the same domain
- by Amit Yadav
I am having two cakephp application working on the same domain.
I access them like
localhost:8080/wishlist &
localhost:8080/lighthouse
The wishlist is a separate cakePHP application and the lighthouse is a separate CakePHP application.
The login page is at localhost:8080/lighthouse, now i want the session generated by the lighthouse application to be used in the wishlist application.
The directory structure is
/htdocs
/wishlist
/app
/config
....
/lighthouse
/app
/config
....
I have edited the core.php file for both the application. I am using the same session cookie name and the same security sale but i am not able to get the session on the wishlist application.
Can some one let me know how can i share session in between my two application.