Posts

Showing posts from March, 2014

ASP.Net Custom session timeout

Image
Asp.net set session timeout in web.config, Global.asax and IIS Introduction: Here I will explain how to set session timeout in web.config,IIS and in application using asp.net manually. Description: By default our websites session timeout is 20 mins after that session will gets expire suppose if we want to set our custom timeout in our applications we can set it in different ways (web.config, global.asax and in IIS) Check below methods to set session timeout in web.config, global.asax and in iis In  Web.config  file we can set session timeout like as shown below  < configuration > < system.web >  < sessionState   mode = " InProc "   timeout = " 60 " >  </ sessionState >  </ system.web > </ configuration > In    Global.asax  file we can set session timeout in   Session_Start  event like this void   Session_Start( object   sender, ...