[Solved] Although it’s another project php uses the same session to login


If both your projects are hosted under the same domain name and port then as far as PHP and the browser is concerned it’s all one application, and therefore they will share a single Session.

Whether you logically view it as two projects is irrelevant to that. If they need to be treated as separate then host them separately e.g. on a different port or a subdomain – you can do this on your local webserver for development / testing, as well as on the live server.

solved Although it’s another project php uses the same session to login