2014-02-11 82 views
1

我已經嘗試過:ASP.NET的超時工作不/ IIS

•Application Pool => Advanced Settings => Process Model => Idle Time-out(minutes) = 0 

•Sites => ASP => Session Properties => Time-out = 720 minutes 

•Sites => Configuration Editor => system.web/sessionState => timeout = 720 minutes 

•Sites => Configuration Editor => system.web/roleManager => cookieTimeout = 720 minutes 

web.config

<authentication mode="Forms"> 
    <forms loginUrl="~/Account/Login" timeout="720" /> 
</authentication> 

<roleManager cookieTimeout="720" defaultProvider="DefaultRoleProvider"> 

<sessionState mode="InProc" customProvider="DefaultSessionProvider" timeout="720"> 

還試圖把循環(常規時間)爲0

儘管如此,會議結束後1小時或更少。

我該如何解決這個問題?

+0

很奇怪,1小時W3wp.exe進程後具有相同的ID?您是否嘗試使用代理(例如fiddler)檢查cookie以檢查到期時間? – bdn02

回答

0

會話或表單auth過期?他們是兩個不同的超時,表現不一樣。內存不足時,您可以鬆動您的Session

Differences in forms auth timeout and session timeout

+0

找到了一個代碼: var authenticationTicket = new FormsAuthenticationTicket(viewModel.Login,false,720); 這是60分鐘,現在我把720.但這仍然無法正常工作。 1小時後,它返回到我的登錄頁面。我查看了iis服務器,所有屬性都可以正常使用,就像我在應用程序中設置的一樣。任何想法? – Wilton