I have many projects running on my server all of which use PHP sessions for authentication.
Now since the PHPSESSID cookie sets the cookie path to '/' in the set-cookie header, this cookie is available throughout the domain, whereas I need it available only to the current application.
Because of this, the following problem occurs :
A user who is logged into mysite.com/application-1 automatically gets logged into
- mysite.com/application-2
- mysite.com/application-3
- mysite.com/application-4
..etc
So, How do I set the path of the PHPSESSID cookie ?