Hello Everyone.
I have live web application(c#).if I am login into system and load the one page now if I wait 1 or 2 minutes the session will expire and goes to again login page.
Actually the problem is very simple but i try everything which i can saw on Google but i didn't get solution for this. I hope any one help me for that.
this is my web config file
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<httpRuntime maxRequestLength="1600000" executionTimeout="300"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add tagPrefix="obout" namespace="Obout.Grid" assembly="obout_Grid_NET"/>
<add tagPrefix="obout" namespace="Obout.Interface" assembly="obout_Interface"/>
</controls>
</pages>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="Session"/>
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</modules>
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Login.aspx"/>
</files>
</defaultDocument>
</system.webServer>
Only this kind of coding in my web config.
What I have tried:
I try
<authentication mode="Forms">
<forms timeout="20"/>
<sessionstate mode="InProc" cookieless="true" timeout="60">
also this kind of coding..
<system.web>
<sessionstate timeout="20">