Welcome Guest, Not a member yet? Register   Sign In
Another disappearing session bug?
#7

[eluser]Stoney[/eluser]
Try this:

Code:
class MY_Session extends CI_Session {

    protected $_CI;

/*
* Do not update an existing session on ajax calls
*
* @access    public
* @return    void
*/
function sess_update() {

    $this->_CI =& get_instance();

        if ( !$this->_CI->input->is_ajax_request() ){
            parent::sess_update();
       }
   }
}


Messages In This Thread
Another disappearing session bug? - by El Forum - 08-17-2012, 11:09 AM
Another disappearing session bug? - by El Forum - 08-21-2012, 01:57 AM
Another disappearing session bug? - by El Forum - 08-21-2012, 02:46 AM
Another disappearing session bug? - by El Forum - 08-21-2012, 03:14 AM
Another disappearing session bug? - by El Forum - 08-23-2012, 02:35 PM
Another disappearing session bug? - by El Forum - 10-23-2012, 02:12 AM
Another disappearing session bug? - by El Forum - 10-23-2012, 02:27 AM
Another disappearing session bug? - by El Forum - 10-23-2012, 09:03 AM
Another disappearing session bug? - by El Forum - 11-04-2012, 12:58 PM
Another disappearing session bug? - by El Forum - 12-15-2012, 01:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB