ASP.Net session timeout: why 20 minutes is the default?

In ASP.Net, the session timeout is set to 20 minutes by default. Why is that? Is there a specific reason for this?

0


source to share


3 answers


Cannot be set for more than 20 minutes (except in special cases) because each open session is held in memory.

From Session.Timeout on MSDN site
Please note that they also provide an explanation of the minimum



It should also not set below 4 minutes because clients rarely respond during this time, resulting in a loss of session state.


Hope it helps ...

+7


source


Well: 10 minutes is too fast. 30 minutes is too long. 15, 25 minutes - the number is not very good. So they decided on 20: P



The magical meaning in the amount of 20. Inoperative meaning in the amount of 20. He simply decided to be the optimal and most beautiful value for the session timeouts.

+1


source


If you have fewer users or if you persist session state to the DB, a longer timeout will not consume too many resources.

0


source







All Articles