<?php
class Cf_Session extends CI_Session
{
    /**
     * Update an existing session
     *
     * @access    public
     * @return    void
     */
    public 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
        if (!is_ajax()) {
            parent::sess_update();
        }
    }
}
