Setting "SessionTimeOut" on web config

There are two ways of setting the Session Time Out in asp.net:

1. Add value key in web config, and use it on your code

2. Use the settings that have been provided in the web config itself. Just open your webconfig file and insert these value :

<system.web>

<sessionState mode="InProc"timeout="60"/>

</system.web>

 

There is no need to add on your code anymore.

In this way, all the sessions that we've made will be automatically sets by value above.

Ok, may it helps

Thanks

No comments:

Post a Comment