Logged in users get logged out after some time

后端 未结 2 980
一生所求
一生所求 2021-02-06 08:44

I made a new MVC3 application and it\'s hosted on WinHost\'s basic plan.

The gist of the problem is, the app pool memory limits are reached and every session InProc is e

2条回答
  •  难免孤独
    2021-02-06 09:00

    It is caused some times because the garbage collector cleans the machine key assigned to your application and assigns a new key that causes the looged in users to log out. Solution is to generate a machineKey for your application and place it in the web.config under system.web like

    
        
    ...
    ...
    

    this link may help you http://aspnetresources.com/tools/machineKey

提交回复
热议问题