Http://localhost:8080/pms/htm/index.php?q=admin/main/index/index
Http://localhost:8080/mps/htm/index.php?q=admin/main/index/index
These two addresses correspond to two different projects, one is PMS, the other is MPs.
Two items have login function, log in successfully will save the user information to $_session[' user '
The problem now is that the value of $session[' user '] is automatically overwritten, checking the PhpsessidMPs and Phpsessid_pms in the cookie, and discovering that the two values are the same ...
Reply content:
Http://localhost:8080/pms/htm/index.php?q=admin/main/index/index
Http://localhost:8080/mps/htm/index.php?q=admin/main/index/index
These two addresses correspond to two different projects, one is PMS, the other is MPs.
Two items have login function, log in successfully will save the user information to $_session[' user '
The problem now is that the value of $session[' user '] is automatically overwritten, checking the PhpsessidMPs and Phpsessid_pms in the cookie, and discovering that the two values are the same ...
The session scope defaults to the same domain name ...
Change to path need to set different path in Session_set_cookie_params ...