Here I am going to give an example on how to redirect to login page after session has expired. This example gives an overlay message which will be retained for 5 seconds before redirecting to the login page. Write a div which will show the warning message when session expires.
In this article I am going to show you how to prevent user going back to the login page if a user is already logged in or redirect a user to the login page if the user is not already logged in. When browser caches the resources then clicking on the browser back button will […]