找回密碼
 註冊
搜索
查看: 3219|回復: 0

Session Timeout 問題

[複製鏈接]
發表於 2013-11-1 11:22:40 | 顯示全部樓層 |閱讀模式
web.config 加入或修改
<system.web>
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="20" />
    </authentication>       
       
    <sessionState timeout="30" />
</system.web>

Setting the forms timeout to something less than the session timeout can give the user a window in which to log back in without losing any session data.

Reference: http://stackoverflow.com/questio ... -timeout-in-asp-net
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-11-21 16:38 , Processed in 0.018693 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表