I am using two session variables sessionLogin and sessionPageName. SessionLogin will hold login name of the user who logs in and sessionPageName will holds the name of a page that is currently loaded. As the sessionLogin timeout occurs, the page is redirected to login page. The purpose of sessionPageName is to redirect the user to the page user had last viewed before timeout of sessionLogin had occurred.
My question is if sessionLogin expires, will sessionPageName also expire given that session timeout interval is after 20 minutes? How can I increase the time out period of sessionPageName to, say, 30 minutes and keep the life of sessionLogin to default?
Alternatively, is there a way in asp.net C# to take the user to the last page they viewed before sessionLogin expired that resulted in direct to login page in my code?