當我在我的ASP.Net網站上發佈了一些東西,
,如果等待7分10秒,頁面上的會話將變爲空。如何在ASP.Net中擴展表單身份驗證時間?
我有這個在Global.asax中的onSessionStart方法
Session.Timeout= 60;
而且有這樣的代碼在web.config中,但它的任何不起作用:
<system.web>
<authentication mode="None">
<forms timeout="30" slidingExpiration="true" />
</authentication>
我該如何解決這個問題?
嗯好吧,但我把它設置爲None,因爲我沒有使用Membership –