Destroying Idle session

0
Hello everyone, I am working in an application where we have created a application that contains different role after user input the credentials the user selects the role and logs in with the respective role. Currently when I log in and close the browser then the user basically gets thrown out and we have to login again but since the previous session is not destroyed we are not able to login again because of a check that we have used that multiple user cannot be logged in with the same email. Please help me to know how can i destroy the session after the browser is closed.
asked
0 answers