I restored a Database and I created a session state through this command
C:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet_regsql -ssadd -sstype p -S IP_ADDRESS -U USER_ID sa1 -P USER_PASS
And in my Web.config I have the following:
<sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="Data Source=IP_ADDRESS;User Id=USER_ID;Password=USER_PASSWORD" cookieless="false" timeout="35"/>
I am using IIS to host the website. I noticed that there is Session State configuration there, and it is using InProcess Mode. Do I need to update the Session State in the IIS, or is my Web.config already enough? I am getting erratic session expiry, and I am not sure what’s causing the session expiry. Please help a newbie out, the docs I found on the internet is very confusing. TIA!