MVC Forms Authentication Timeout
シナリオ:.NET MVC、Forms Authentication にてtime out を60分に設定する。 IISのタイムアウトを65分に設定: <system.web> <authentication mode="Forms"> <forms loginUrl="~/Pub/SignIn" defaultUrl="~/List/Index" name="authest" protection="All" path="/" timeout="65" slidingExpiration="true" cookieless="UseCookies" enableCrossAppRedirects ="true"/> </authentication> <sessionState mode="InProc" timeout="65" customProvider="DefaultSessionProvider"> </system.web> JSでタイムアウトを 60分に設定: var timeout = { timoutPeriod: 60, // in min. timerId: null, resetTimeOut: function () { if (0 < timeout.timoutPeriod) { window.clearTimeout(timeout.timerId); timeout.timerId = window.setTimeout(function () { timeout.timeOut(); }, timeout.timoutPeriod * 6...