Session Time Out in Asp.net 4.0 on IIS 7.5

后端 未结 2 1159
广开言路
广开言路 2021-01-21 12:59

I want to set timeout for my web application for 12 hours.

I have done setting in web.config file as:


     

        
2条回答
  •  长发绾君心
    2021-01-21 13:27

    You should set all following:

    Application Pool / Advanced Settings. There the option Idle Timeout should be set in minutes.

    Then within the web.config file in system.web section you should also set the Authentication/Forms, SessionState and RoleManager timeouts, if applicable.


    
    
    
    
    ...
    

提交回复
热议问题