php keep session active across multiple websites
Posted on 2009-02-19
What's the best way of keeping track of session variable and using it across multiple domain ?
I have a login page which links to different services (domains). The session remains active within my main loging page and any other pages with the same domain. As soon as I click on one of the links, it gets lost and i can't access it anymore. How do I get over this issue and what's the best way of approaching it:
Here is an example:
main.com (there is a login on main.com)
As soon as the user logs in, he/she will see links to other sites he/she can access:
Once I click on 1.com or 2.com, the session is lost.
I want to give the users the ability to walk through 1.com, 2.com,3.com without the need to login again...