It's hard to explain it, but here. I found a similar question in the search, but it was for C, not PHP.
I am developing a PHP site that has two sections for logging in, one for employees and one for employers. When the user logs out, their session is cleared, currently using the "session_destroy ()" function. I also use this on the login page to clear any previous session.
The problem arises if I work on both sections at the same time. Because they are on the same "site", entering one magazine from another. I have to use two browsers at a time, one went to one section and the other to another.
Is there a better way to end a session when a user logs out rather than "session_destroy ()", which will not affect another part of the site?
source
share