My website hosted on server is logging out after 1 min of inactivity. I have set
<sessionState timeout="600"/>
in my web config. but how can i prevent idle time logout in my server. In my local machine it is working fine.
My website hosted on server is logging out after 1 min of inactivity. I have set
<sessionState timeout="600"/>
in my web config. but how can i prevent idle time logout in my server. In my local machine it is working fine.
I set my timeout in the session_start using HttpContext.Current.Session.Timeout = 300;
In global.asax.cs add / edit the method Session_Start
void Session_Start(object sender, EventArgs e) {
HttpContext.Current.Session.Timeout = 300;
}