how to avoid session timeout in web.config

后端 未结 6 735
萌比男神i
萌比男神i 2020-12-18 00:21

What should I write in web config file in asp.net so that my session time is extended. and please tell me the exact location where should I place the code in web config

6条回答
  •  不知归路
    2020-12-18 00:52

    You can change the amount of time a session can be idle before it is discarded by adjusting the timeout attribute within the Element.

    Remember that the timeout value is set in minutes.

    *timeout:*Specifies the number of minutes a session can be idle before it is abandoned. The timeout attribute cannot be set to a value that is greater than 525,601 minutes (1 year) for the in-process and state-server modes.

    For reference please see http://msdn.microsoft.com/en-us/library/h6bb9cz9(vs.80).aspx

提交回复
热议问题