I'm using ASP.NET SessionState provider for my web application.
I configured it by placing the following code in my web.config file:
<sessionState mode="Custom" customProvider="DefaultSessionProvider" allowCustomSqlDatabase="true" timeout="60" cookieless="false">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=200e8383838" connectionStringName="SessionConnection" />
</providers>
</sessionState>
It placed a "Sessions" table in the database that I specified in the "SessionConnection" connection string. One of the columns in the table is "Locked." Occasionally when testing my code the locked attribute is set to true and I can no longer run the app until I manually set the value back to false.
What causes the locked attribute to be set to true? I noticed after encountering an exception it sometimes triggers this. I don't want users to get locked out of the web when it's in production so what can I do to avoid this?