JDP 發表於 2013-11-1 11:22:40

Session Timeout 問題

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/questions/648992/session-timeout-in-asp-net
頁: [1]
查看完整版本: Session Timeout 問題