c# - ASP.net MVC Keeping Session Alive -


i trying find way keep session alive when controller taking long time come results. javascript on button click looks below:

function onclick(s, e) {         positiondate = reportingpositiondate.getdate().todatestring();          if (true) {             $.ajax({                 type: "post",                  url: "@url.action("datafileupload", "importdata")",                 data: json.stringify({ positiondate: positiondate }),                 datatype: "text",                 contenttype: "application/json; charset=utf-8",                 beforesend: function () { lpimport.show(); },                 success: function (msg) {                     debugger;                     importdatagridview.performcallback();                     importsuccessmessage.setvisible(true);                     importsuccessmessage.settext(msg);                     lpimport.hide();                 },                 error: function (xhr) {                     alert(xhr)                     importdatagridview.performcallback();                 }             });         }     } 

basically session times out before success. silently keep session alive. all.


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -