I am developing a system in php CodeIgniter, and I need to protect the data.
For example, a dentist opens his patient list in another tab, then logs out, the tab where he gave this command destroys all session variables and returns to the login page. But he still has the patient list tab open. It is clear that the session is destroyed in the whole browser, but what happens if another dentist logs in on the same browser and PC (assuming the worst cases), the session variables are recreated, and he manages to see the list of patients of the other dentist and also perform actions on it.
In what way can security be implemented for this, I had thought that all the open tabs of this system are closed.