Session timeout after some seconds in Umbraco

不羁的心 提交于 2020-01-13 10:58:08

问题


I have created an site on Umbraco 7.1.6 it was working perfect in Visual studio 2012; when I deployed it to my hosting space I found a problem that it redirects me to login screen again and again just after some seconds. I have set keep user login to true and increased timeout but no improvement.

When I searched for that problem I found some links:

  • https://github.com/umbraco/Umbraco-CMS/compare/release-7.1.6...7.2.0

  • http://issues.umbraco.org/issue/U4-3845

  • https://github.com/Umbraco/Umbraco-CMS/commit/c936aaa51753862914591b753f7f2d7be7749cf7

First link provide me file but I do not know how to updated my current site.

In console I am getting an error.

GET http://example.com/umbraco/backoffice/UmbracoApi/Authentication/GetRemainingTimeoutSeconds 401 (Unauthorized) angular.min.js:106(anonymous function) angular.min.js:106o angular.min.js:102g angular.min.js:100i angular.min.js:79i angular.min.js:79(anonymous function) angular.min.js:80e.$eval angular.min.js:92e.$digest angular.min.js:90e.$apply angular.min.js:92safeApply umbraco.services.js:58(anonymous function) umbraco.services.js:6773(anonymous function) angular.min.js:108e angular.min.js:31(anonymous function)


回答1:


I just experienced the exact same symptoms. A site ran just fine locally, using IIS Express, worked fine when deployed to Azure WebSites, but when I ran on a Windows Shared Hosting environment, the back office session would timeout somewhere between a couple seconds and a couple minutes.

I'd get a pop-up authentication window often but not always on the GetRemainingTimeoutSeconds url.

I filed a ticket, and the provider was able to replicate the issue. They said the site was running in full trust.

After enabling 32 bit application support - the issue is resolved.




回答2:


Thanks to everyone, especially to @Morten Oc who commented.

It's properly something on the hosting. Have you tried other Umbraco installations on hosterpk? Also, try to set the login time (in webconfig) to 0.

I found out a solution that it was due to hosting environment (permissions), I deployed on client's hosting and it works perfectly.

Additionally if you do not have full trust hosting then it would not be able to maintain its session, you would have to configure session to managed in database.

For more info how to configure please refer to this post:

https://www.saotn.org/configure-sqlserver-sessionstate-for-umbraco/



来源:https://stackoverflow.com/questions/25583127/session-timeout-after-some-seconds-in-umbraco

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!