-2
我用下面的Web配置代碼,但是當session
期滿不工作properly.Suggest你的代碼重定向如何重定向頁面,當會話過期
我的代碼是:
<authentication mode="Forms">
<forms name="MyAuth" timeout="60" protection="All" loginUrl="Login.aspx" slidingExpiration="true" />
</authentication>
<sessionState mode="InProc" cookieless="false" timeout="60" />
什麼是「無法正常工作」?什麼_does_發生? – CodeCaster
可能重複[重定向到會話超時後登錄頁面](http://stackoverflow.com/questions/12502295/redirect-to-login-page-after-session-timeout) – CodeCaster
@CodeCaster它會顯示錯誤時,當我嘗試在20分鐘後點擊一個按鈕 –