我使用InProc模式將會話存儲在我的mvc3應用程序中,但由於每20分鐘重新啓動IIS,所以存儲身份驗證更改爲SQLServer。連接到數據庫是好的,在會話中儲存,但認證犯規持續很長的重啓在使用SQLServer存儲身份驗證時丟失身份驗證
Webconfig
<sessionState mode="SQLServer" timeout="2880" allowCustomSqlDatabase="true"
sqlConnectionString="data source=mydatasource;initial catalog=mydb;user id=userid;password=password;
integrated security=False;MultipleActiveResultSets=True;"
cookieless="true" />
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" slidingExpiration="true" protection="All" cookieless="UseCookies"/>
</authentication>
表和installsqlstate.sql – 2013-03-14 08:19:06