Session Time Out in Asp.net 4.0 on IIS 7.5

后端 未结 2 1145
广开言路
广开言路 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.


    <authentication mode="Forms"><forms loginUrl="~/default.aspx" name=".ASPXFORMSAUTH" timeout="120" /></authentication>
    
    <sessionState cookieless="AutoDetect" cookieName="TYS_ADMIN_SessionId" timeout="120" />
    
    <roleManager ... cookieTimeout="120" defaultProvider="GMRoleProvider" enabled="true">...</roleManager>
    
    0 讨论(0)
  • 2021-01-21 13:53

    You can try out WMI(Windows Management Instrumentation) script it can help you.You need to have sufficient priveleges to implement the Script.

    follwing are the links you can check to get more information.

    http://bendera.blogspot.in/2010/12/configuring-ica-rdp-timeout-values.html

    http://technet.microsoft.com/en-us/library/cc771956%28v=ws.10%29.aspx

    0 讨论(0)
提交回复
热议问题