Skip to main content
Participant
September 27, 2013
Question

cf session timeout when only using ajax calls

  • September 27, 2013
  • 0 replies
  • 361 views

I have a cf9 app that just has a few ajax calls. They are from a prev/next button and if a person just sits and presses the next button for 20 minutes they get timed-out because our 20 minute session timeout setting. What can I do to reset the cf session timeout when they click on the "next" button?

$(document).ready(function() {

  $("#PaymentPlanTrackingListNextButton").live ('click', function() {

    $.get('payment_plans_tracking_list.cfm',

    {

      PaymentPlanTrackingAdvisor:$("#PaymentPlanTrackingAdvisor").val(),

      PaymentPlanTrackingDueDateStart:$("#PaymentPlanTrackingDueDateStart").val(),

      PaymentPlanTrackingDueDateEnd:$("#PaymentPlanTrackingDueDateEnd").val(),

      PaymentPlanTrackingListCurrentPage:parseInt($("#PaymentPlanTrackingListCurrentPage").val()) + 1

    },

    // Sends to div id=PaymentPlanTrackingList

    function(data,status) {

      $("#PaymentPlanTrackingList").html(data);

      $("#PaymentPlanTrackingStatus").html("");

    })

  })

})

This topic has been closed for replies.