The goal: I am trying to get the user to log off if they leave this area. Area name: employer if the user goes to the home page or anywhere else on the web and tries to log in or hits the back button I want the system to end the users session.
for example: www.example.com/employer/dashboard - is protected and the user has to be logged in to access this area.
if the user goes to www.google.com and try to go back to www.example.com/employer/dashboard their session ends and they are redirected to the login page.
any advice would help