Change session timeout on IIS Express?

前端 未结 1 574
天涯浪人
天涯浪人 2020-12-20 14:55

I would like to test session timeout problems while using IIS Express but I can\'t figure out how to modify the Session State setting so I can change the Time-out for Cookie

1条回答
  •  醉梦人生
    2020-12-20 15:49

    Try following

    1.In the web application's web.config file set sessionState timeout something like below (it is in minutes)

    2.Make sure that your application's app pool idle time out is greater than or equal to the timeout specified above (you can run the following command from the iisexpress installation folder)

    appcmd set config /section:applicationPools /[name='YourAppPoolName'].processModel.idleTimeout:0.00:30:00
    

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