when i fast typing in search box input then suddenly automatic my session break why ?

when i fast typing in search box input then suddenly automatic my session break why ?

elevensquareelevensquare Posts: 5Questions: 2Answers: 0

i want to solution for this critical issue that when i fast typing for searching and filtering data then automatically my session break and i redirect to my logiin page . why this happend ?

Answers

  • elevensquareelevensquare Posts: 5Questions: 2Answers: 0

    i use this code

    var dtable= $("table#pagination-2").DataTable({
    "processing": true,
    "serverSide": true,
    "order": [],
    "searchDelay":2000,

        "ajax": {
                "url": dataTableURL,
                "type": "POST"
            },
            "columnDefs": [{ 
                "targets": [0],
                "orderable": true
            }],
            'aoColumnDefs': [{
                'bSortable': false,
                'aTargets': [-1,-2,-3] /* 1st one, start by the right */
            }],
    
            "initComplete": function() 
            {
             $(".dataTables_filter input")
              .unbind() // Unbind previous default bindings
              .bind("input", function(e) { // Bind our desired behavior
                  // If the length is 3 or more characters, or the user pressed ENTER, search
                  if(this.value.length > 3 || e.keyCode == 13) {
                      // Call the API search function
                      dtable.search(this.value).draw();
                  }
                  // Ensure we clear the search if they backspace far enough
                  if(this.value == "") {
                      dtable.search("").draw();
                  }
                  return;
              });
    
            }
      })
    
  • David@QuantumDavid@Quantum Posts: 36Questions: 4Answers: 2
    edited January 2020

    Are you using an Apache server to host your project?
    If so look in /var/log/apache2/error.log - this may provide some insight.
    My assumption is it's a server based error, with an issue with the number of transmissions coming in from the same source?

    Hope this helps at least a little,
    Dan@Quantum

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    If David's suggestion doesn't help, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • elevensquareelevensquare Posts: 5Questions: 2Answers: 0

    thanks to david and colin for reply.
    david i am use apache server for php mysql and codeigniter and server side datatbles . i understand your reply but i want any solution to remove this issues.
    please give any solution .

  • tangerinetangerine Posts: 3,342Questions: 35Answers: 394
    edited January 2020

    Did you check your server error logs, as recommended by David@Quantum?

  • elevensquareelevensquare Posts: 5Questions: 2Answers: 0

    no i not check but if you say to check server error log then i reply to you .

This discussion has been closed.