Session cookie name prevents multiple login to 2 installations of chamilo
The CH_SID cookie is used for sessions but is the same for every install.
The effect is that if you have multiple installations of chamilo on the same server, you cannot be logged into both at the same time. Suppose chamilo.org has a test1 end test2 version of chamilo1.8, then When you switch from chamilo.org/test1 to chamilo.org/test2, you will have to logon again. And vice versa.
The problem is caused by:
And can be solved by changing ch_sid into a different name for every installation of chamilo. You can choose any name fod ch_sid.
Maybe that "store sessions in database" is another solution but I don't know for sure.
Updated by Yannick Warnier almost 7 years ago
- Target version set to 1.9.2
- Estimated time set to 0.50 h
This is a very specific problem. I will move it to 1.9.2 because it doesn't prevent most people to use it (I would broadly estimate the users affected to 1/100,000 because they need to have accounts on two different portals and use chamilo installations as subdirectories - we recommend using subdomains).
Subdomains work fine in this situation. In order to implement a fix to this, we would have to change the set_cookie() function to set it to a particular directory. I don't remember exactly what it is.