Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET MVC
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 27-May-14 20:59pm
Comments
Sunasara Imdadhusen at 28-May-14 2:44am
   
Hello, How long your request will execute? In how much time you will get timeout error?
Arav Pradeep Gupta at 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)

  Print Answers RSS
0 OriginalGriff 250
1 George Jonsson 175
2 Jochen Arndt 150
3 Kornfeld Eliyahu Peter 149
4 PIEBALDconsult 110
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 28 May 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100