In the past, I used a base page or a main page on each page (making an exception for the login page) that reads the session token to find out if the user is currently logged in.
If it ever reads zero, it saves the current URL and redirects the login page.
After logging in, it reads the saved URL and redirects the user back to the requested page.
Increasing a session timeout value is a setting in IIS.
asawyer
source share