windows authentication session timeout

前端 未结 2 597
野的像风
野的像风 2021-02-10 09:48

I have this code in my web.config:

 
    
        
           


        
2条回答
  •  悲&欢浪女
    2021-02-10 10:24

    Make sure the idle timeout isn't set on the app pool in IIS. The default for that setting is 20 minutes (which leads to confusion over whether the timeout was triggered by session timeout or idle timeout) and in most cases can be safely set to 0, which turns it off.

    To check the idle timeout in IIS, go to Advanced Settings for the app pool.

    The idle timeout is a sliding window based on activity for the app, so requests from any client will reset the window. If your app is lightly used, you'll hit the timeout frequently, causing your app pool to recycle. The impact to users is that any sessions that had been active will be lost, and users walking up to your app after it has been idle will have to wait for it to run all of its start up processes.

提交回复
热议问题