[eluser]InsiteFX[/eluser]
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Session extends CI_Session {
/**
* Update an existing session
*
* @access public
* @return void
*/
public function sess_update()
{
$CI = get_instance();
// skip the session update if this is an AJAX call!
if ( ! $this->CI->input->is_ajax_request())
{
parent::sess_update();
}
}
}
/* End of file MY_Session.php */
/* Location: ./application/libraries/MY_Session.php */
// the is_ajax_request() is now a method in CI 2.0+ See: system/core/input.php at the bottom.
The Input Library is loaded by CI.
InsiteFX