Session timeout on server side in asp.net c#

前端 未结 4 408
忘了有多久
忘了有多久 2021-01-17 04:05

I have problem with session timeout even i added code in web.config as follows but its not working, it expires within 10 mins.



        
4条回答
  •  感动是毒
    2021-01-17 04:51

    Despite your Server has session timeout of 20 minutes as you mentioned. you may lost session state data for the following reason:

    • When IIS Application Pool restarts or reset.
    • ASP.NET Worker Process is recycled unexpectedly.
    • Overriding your bin or web.config.
    • Or when you upload or delete any file in the application.

    Solution: use StateServer session state mode:

    
    

    visit this link to configure StateServer: Configure a State Server to Maintain Session State

提交回复
热议问题