In ASP.NET there are two ways of setting the session timeout.
In the code:
or In web.config
But what I don't understand is the difference between the two forms.
Are there any?
The value in web.config is a (default) timeout value for all sessions. In code you are able to give specific sessions a different timeout.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.