Skip to content

Instantly share code, notes, and snippets.

Zhihui Li zhlifly

View GitHub Profile
@zhouming
zhouming / MY_Session.php
Created Sep 8, 2012
Use redis in Codeigniter Session.
View MY_Session.php
<?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();
You can’t perform that action at this time.