In a nutshell, I want to show loginpage when the session expires.For that I have modified some details in web.config shown below so that I can test whether the logic works.But sadly the below logic is not firing
My expectation was to go the Login Action
in the Account Controller
when the session expires.
Also what's the difference between the timeout in authentication section
and session state
section
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="1" />
</authentication>
<sessionState mode="InProc" timeout="1" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
</providers>
</sessionState>