Using CakePHP 2. I have the directory structure:
/var/www/basesite
/appdev
/app (and all other cake dirs)
/appqa
/app
/appstage
/app
So I have three different sites all with the same baseurl but different subdirectories, all of which contain substantially the same code. Everything works, all the apps load and operate successfully.
The problem is, if a user logs in on dev, and then views QA, they are logged in. And if they then log out on QA and return to dev, they are logged out on dev also.
The Question:
How and where can I set the session scope to ensure it is limited to the appropriate sub-path for each instance of the application?
You set it via the cookie_path in your /app/Config/core.php using session.ini.
http://book.cakephp.org/2.0/en/development/sessions.html