ASP.NET Why are sessions timing out, sessionstate timeout set

后端 未结 4 1235
夕颜
夕颜 2020-12-02 00:22

Hey I have the following line in my web.config


Which I thought would keep sessions int

4条回答
  •  無奈伤痛
    2020-12-02 00:45

    Be sure to check your IIS configuration because the application pool that your site is hosted on also has its own timeout value which will override your own .config.

    To increase it,

    1. Open IIS
    2. Select Application Pools on the left side
    3. Select the Application Pool used by your site
    4. Choose advanced settings
    5. Under Process Model categtory increase the 'Idle Time-out' value to the desired length.

    Hope this helps.

    (If you do not have a dedicated server / access to IIS with your hosting provider you will have to contact them to see if they can increase it for you)

提交回复
热议问题