Welcome Guest, Not a member yet? Register   Sign In
Ajax and Session loss
#2

[eluser]InsiteFX[/eluser]
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
* ------------------------------------------------------------------------
* CI Session Class Extension.
* ------------------------------------------------------------------------
*
*
*/

class MY_Session extends CI_Session {
   /*
    * Do not update an existing session on ajax calls
    *
    * @access    public
    * @return    void
    */
    public function sess_update()
    {
        if ( ! IS_AJAX())
    {
            parent::sess_update();
        }
    }

    public function sess_destroy()
    {
    parent::sess_destroy();

    $this->userdata = array();
    }

}

// ------------------------------------------------------------------------
/* End of file MY_Session.php */
/* Location: ./application/libraries/MY_Session.php */

InsiteFX


Messages In This Thread
Ajax and Session loss - by El Forum - 09-14-2010, 07:09 PM
Ajax and Session loss - by El Forum - 09-14-2010, 10:41 PM
Ajax and Session loss - by El Forum - 09-14-2010, 11:00 PM
Ajax and Session loss - by El Forum - 09-14-2010, 11:12 PM
Ajax and Session loss - by El Forum - 09-14-2010, 11:13 PM
Ajax and Session loss - by El Forum - 05-12-2011, 05:33 PM
Ajax and Session loss - by El Forum - 05-12-2011, 07:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB