For content editors who work on one or many DNN websites regularly, getting signed out and needing to log back in can quickly become an annoyance.
We can solve this by extending the duration for how long DNN keeps a user logged in and authenticated by modifying a web.config variable.
Another modification you can implement is to utilize the property slidingExpiration.
With slidingExpiration set to false, your authentication token/cookie will not get automatically refreshed every time you refresh a page. This would allow you to define a fixed duration for how long a user can be logged into the website.
Utilizing this setting would likely be very situational, as in most instances, it could be jarring for a user to have their session ended while they are still actively working with the application.
Image Credit: Adobe Firefly
A resource from https://dnnsupport.dnnsoftware.com