Thursday, December 17, 2015

c# asp net session timeout

Example:

 <system.web>
     <sessionState timeout="60"></sessionState>
  </system.web>
 
if not working, try this:
1,  go to IIS
2, Application Pools --> Advanced Setting 
--> change Time in Idle Time-out

--> Done!


 

1 Comment:

  1. Duc Nguyen said...
    for godaddy hosting , please do this:





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

Post a Comment