Session express when I use ajax imap |
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: ![]() } } } |
Messages In This Thread |
Session express when I use ajax imap - by wolfgang1983 - 12-20-2017, 06:21 PM
RE: Session express when I use ajax imap - by InsiteFX - 12-21-2017, 04:28 AM
RE: Session express when I use ajax imap - by XtreemDeveloper - 12-23-2017, 10:17 AM
|