Welcome Guest, Not a member yet? Register   Sign In
Finding the suitable way to store CI session
#3

[eluser]Otemu[/eluser]
Hi,

A updated version of the one noideawhattotypehere you only need this:

Code:
<?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::sess_update();
       }
    }
}

taken from https://github.com/EllisLab/CodeIgniter/issues/154


Messages In This Thread
Finding the suitable way to store CI session - by El Forum - 11-05-2013, 08:34 PM
Finding the suitable way to store CI session - by El Forum - 11-06-2013, 12:32 AM
Finding the suitable way to store CI session - by El Forum - 11-06-2013, 04:56 AM
Finding the suitable way to store CI session - by El Forum - 11-07-2013, 10:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB