ASP.NET Razor/Webmatrix sites logout user too quickly. How to change?
问题 The WebSecurity component in Webmatrix is pretty slick, but users' sessions expire too quickly for me. It seems like it's measured in hours and I'd like the session timeout to be more in terms of days. How do I change the session timeout? 回答1: In answer to your question, you can set any value for session timeout in your web.config: <configuration> <system.web> <sessionState timeout="value_in_minutes"></sessionState> </system.web> </configuration> By default, sessions expire 20 minutes after