session timeout
-
Hi, I am working on ASP.NET C# application. Everything is working fine on the local machine but on the server my application's session timeout after two minutes. I haven't set the session timeout in web.config. Please tell me the reason of this. Also tell me what is the unit of session timeout minute, second or millisecond. Thanks Sonia
-
Hi, I am working on ASP.NET C# application. Everything is working fine on the local machine but on the server my application's session timeout after two minutes. I haven't set the session timeout in web.config. Please tell me the reason of this. Also tell me what is the unit of session timeout minute, second or millisecond. Thanks Sonia
Sonia Shahid wrote:
I haven't set the session timeout in web.config
Set Session timeout as
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="50" />Sonia Shahid wrote:
Also tell me what is the unit of session timeout minute, second or millisecond
Minutes
Regards Aman Bhullar www.arlivesupport.com[^]
-
Hi, I am working on ASP.NET C# application. Everything is working fine on the local machine but on the server my application's session timeout after two minutes. I haven't set the session timeout in web.config. Please tell me the reason of this. Also tell me what is the unit of session timeout minute, second or millisecond. Thanks Sonia
Sonia Shahid wrote:
but on the server my application's session timeout after two minutes.
Session will end when ASP.NET worker process recycles. You need to make sure your code is not doing something like updating
web.config
at the run-time that will recycle the worker process.Sonia Shahid wrote:
Also tell me what is the unit of session timeout minute, second or millisecond.
It is in minutes.
Best wishes, Navaneeth
-
Sonia Shahid wrote:
but on the server my application's session timeout after two minutes.
Session will end when ASP.NET worker process recycles. You need to make sure your code is not doing something like updating
web.config
at the run-time that will recycle the worker process.Sonia Shahid wrote:
Also tell me what is the unit of session timeout minute, second or millisecond.
It is in minutes.
Best wishes, Navaneeth
Try setting the timeout in the Web.config. If you don't set it, I think it could still not be the default value if the Machine.config has a different value for it. Also, any page can reset the time-out.
-
Try setting the timeout in the Web.config. If you don't set it, I think it could still not be the default value if the Machine.config has a different value for it. Also, any page can reset the time-out.