CakePHP session sharing between two apps, on the same domain

Posted by Amit Yadav on Stack Overflow See other posts from Stack Overflow or by Amit Yadav
Published on 2010-06-08T09:52:43Z Indexed on 2010/06/09 0:22 UTC
Read the original article Hit count: 513

Filed under:

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.

© Stack Overflow or respective owner

Related posts about cakephp