Session timeout in ASP.NET

后端 未结 15 2380
忘了有多久
忘了有多久 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:53

    That is usually all that you need to do...

    Are you sure that after 20 minutes, the reason that the session is being lost is from being idle though...

    There are many reasons as to why the session might be cleared. You can enable event logging for IIS and can then use the event viewer to see reasons why the session was cleared...you might find that it is for other reasons perhaps?

    You can also read the documentation for event messages and the associated table of events.

提交回复
热议问题