Skip to content

Instantly share code, notes, and snippets.

View roastduck's full-sized avatar

Shizhi Tang roastduck

View GitHub Profile
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Session extends CI_Session{
private $sess_use_redis = TRUE;
private $redis = '';
public function __construct($params = array()) {
//parent::__construct();
$this->CI =& get_instance();