Welcome Guest, Not a member yet? Register   Sign In
Session express when I use ajax imap
#3

you can basically disable the session updates when AJAX calls are made. This code should go in /application/libraries/MY_Session.php
 <?php
class MY_Session extends CI_Session {

    /**
     * Update an existing session
     *
     * @access    public
     * @return    void
    */
    function sess_update() {
       // skip the session update if this is an AJAX call! This is a bug in CI; see:
       // https://github.com/EllisLab/CodeIgniter/issues/154
       // http://codeigniter.com/forums/viewthread/102456/P15
       if ( !($this->CI->input->is_ajax_request()) ) {
           parent:Confusedess_update();
       }
    }
}
Reply


Messages In This Thread
RE: Session express when I use ajax imap - by XtreemDeveloper - 12-23-2017, 10:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB