I would like to redirect user to login page if the user uses back button after the session has timed out. Please advise how to implement this? It is acceptable to use back button when session is valid.
Also, I would like to redirect user to login page if the user browsed to an external site in same window and then pressed back button to come back to an active session. How can I achieve this?