0
A
回答
2
這取決於web.config中的Timeout屬性。
0
在你的web.config文件的System.Web屬性,則必須進行以下設置:
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" />
</authentication>
那麼你的cookie將取決於您的超時屬性設置的值到期。
相關問題
- 1. FormsAuthentication.SetAuthCookie
- 2. FormsAuthentication.SetAuthCookie做什麼
- 3. FormsAuthentication.SetAuthCookie與FormsAuthentication.Encrypt
- 4. CreateUserWizard調用FormsAuthentication.SetAuthCookie?
- 5. FormsAuthentication.SetAuthCookie問題
- 6. FormsAuthentication.SetAuthCookie持續
- 7. FormsAuthentication.SetAuthCookie不起作用
- 8. .NET 4.0 FormsAuthentication.SetAuthCookie失敗
- 9. formsauthentication.setauthcookie默認過期?
- 10. FormsAuthentication.SetAuthCookie使用Moq嘲弄
- 11. FormsAuthentication.SetAuthCookie不[授權]在MVC 5
- 12. Cookie混淆與FormsAuthentication.SetAuthCookie()方法
- 13. Formsauthentication.SetAuthCookie和Session之間的差異用法
- 14. FormsAuthentication.SetAuthCookie在異步操作中拋出NullReferenceException
- 15. 401即使在FormsAuthentication.SetAuthCookie()後仍未授權
- 16. FormsAuthentication.SetAuthCookie和Request.url單元測試失敗
- 17. 爲什麼FormsAuthentication.SetAuthCookie不起作用在IE
- 18. 使用FormsAuthentication.SetAuthCookie存儲加密字符串
- 19. 使用FormsAuthentication.SetAuthCookie存儲更多信息
- 20. 通用處理程序中的FormsAuthentication.SetAuthCookie ashx
- 21. ASP MVC如何創建自定義FormsAuthentication.SetAuthCookie?
- 22. FormsAuthentication.SetAuthCookie OnAuthorization的自定義屬性
- 23. FormsAuthentication.SetAuthCookie通過服務(或其他遠程方式)
- 24. Mono MVC5 User.Identity.IsAuthenticated在用FormsAuthentication.SetAuthCookie()登錄後返回false
- 25. FormsAuthentication.SetAuthCookie未在WebResponse Cookie集合中設置Cookie
- 26. 是否用戶ID數據類型影響FormsAuthentication.SetAuthCookie(UserId.ToString(),FALSE)?
- 27. 我該如何測試一個只調用FormsAuthentication.SetAuthCookie()的方法?
- 28. 如何將FormsAuthentication.SetAuthCookie從數據訪問層類傳遞到WebService到Javascript?
- 29. 驗證登錄後使用FormsAuthentication.SetAuthCookie是否安全,然後僅依賴於AuthorizeAttribute?
- 30. mvc3更改認證值