22 May 2016

Config session timeout in asp.net web.config

Guider: Config session timeout in asp.net

Method 1: Config session timeout with Edit Web.config

<configuration>
        <system.web>
           <sessionState timeout="60" />
        </system.web>
</configuration>


Method 2: Config session timeout with Edit Global.asax

void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started
Session.Timeout = 120;
}


Method 3: Config session timeout with Config in Control Panel Hosting

Control Panel Hosting -> Settings -> ASP.NET Settings -> Session timeout (minutes)

Config session timeout with Config in Control Panel Hosting
Config session timeout with Config in Control Panel Hosting



Method 4: Config session timeout with Config in Internet Information Services (IIS) Manager

Internet Information Services (IIS) Manager -> Session State -> Time-out (in-minutes)

Config session timeout with Config in Internet Information Services (IIS) Manager
Config session timeout with Config in Internet Information Services (IIS) Manager

Good luck !

No comments:

Post a Comment