I have a rare situation with PHP sessions. I have a web server running Apache2 (Linux Debian 10).
I developed a mini CRM using PHP and MySQL. My miniCRM is hosted in the same server but in two different directories, example: 192.168.0.233/app/1/login.php and 192.168.0.233/app/2/login.php.
I noticed that if I do login via 192.168.0.233/app/1 the session is also shown on 192.168.0.233/app/2.
I would like somebody help me to avoid this. I don't want the session created on app/1 be able in app/2. I would like to keep them separated.
In the mini CRM, the script login.php starts the session with these code:
@$_SESSION["logged_user"] = "$post_username";
Note: The linux debian is running in VirtualBox.