Session timeout in ASP.NET

后端 未结 15 2460
忘了有多久
忘了有多久 2020-11-22 09:14

I am running an ASP.NET 2.0 application in IIS 6.0. I want session timeout to be 60 minutes rather than the default 20 minutes. I have done the following

  1. Set <
15条回答
  •  囚心锁ツ
    2020-11-22 09:39

    Are you using Forms authentication?

    Forms authentication uses it own value for timeout (30 min. by default). A forms authentication timeout will send the user to the login page with the session still active. This may look like the behavior your app gives when session times out making it easy to confuse one with the other.

    
        
              
        
    
        
    
    

    Setting the forms timeout to something less than the session timeout can give the user a window in which to log back in without losing any session data.

提交回复
热议问题