Last post Dec 19, 2016 09:50 AM by Zhi Lv - MSFT
Dec 17, 2016 10:10 PM|micah2012|LINK
Dec 18, 2016 12:49 PM|PatriceSc|LINK
If really authentication (forms authentication ?) you could try
https://msdn.microsoft.com/en-us/library/1d3t3c61(v=vs.90).aspx and in particular the timeout settings. You could also implement a "remember me" feature.
But "few" minutes only seems quite short. Sometimes it's best to take the time to fully understand what is the EXACT problem before trying to take actions that might be unrelated to the actual problem. Try to increase the timeout but if nothing changes it
might be perhaps that the app is "recycled" ?)
Dec 18, 2016 01:40 PM|markfitzme|LINK
Also keep in mind, when a user visits a page, they are only connected to the server for as long as it takes to get the page and its resources. Once the page and all it's resources has been served the user is disconnected, even if they are logged in. The
next time they visit it's a brand new connection to the server, and the server treats it just like the visit where they logged in.
One thing you can do though is set slidingexpiration to true for forms authentication. This means that the logout timer is refreshed as they make requests. If they're over the time limit they are still logged out, but if they are in the time limit the clock
resets as they navigate the site.
Dec 19, 2016 06:01 AM|micah2012|LINK
Dec 19, 2016 09:50 AM|Zhi Lv - MSFT|LINK
From your description, do you mean you want to prevent user logout? If that is the case, I suggest you could try to refer to the ways.
1. Extend the expiration time.
a. If you are using session to store user information, you could refer to the following link:
b. If you are using cookie, you can check this article:
c. If you are using Forms Authentication Ticket and Cookie, please refer to the following links:
2. Using global variable to store user information.