Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends, Please help me to solve a sessiontimeout issue raised frequently in my MVC application.In my application we have made all the request like click,summit,post,change using Ajax ($Ajax).

I have to set the request timeout to 8Hr so to get it working I made changes to set SessionTimeout with its mode Inproc to 8Hr into Web.config and for Ajax request

$.ajaxSetup({
cache: false,
timeout: 3600000*8 //set hour to keep session alive (8hr)
});

into Layout.cshtml but I did not get it working as expected.

So please help me on this to share your experience.

Very thanks in advance !!!!
Posted
Comments
Sunasara Imdadhusen 28-May-14 2:44am    
Hello, How long your request will execute? In how much time you will get timeout error?
Arav Pradeep Gupta 28-May-14 2:59am    
Thanks you for quick response...
actually I need to set timeout because once ideal for couple of minutes then hit to make a request then raise error for session timeout , However I have set it to 8hr in Web.Config as well Layout.cshtml for Ajax request.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900