How to set Session Timeout in web.config

There are two way to set session timeout property in ASP.Net.

First Method : Edit the following in your web.config fle.

<sessionState mode="InProc" cookieless="true" timeout="60">


Second Method : Go to global.asax file and write the code below:.

void Session_Start(object sender, EventArgs e)
     Session.Timeout = 60;

Also please refer the suggessions @

Was this answer helpful? 0 Users Found This Useful (0 Votes)