Skip to content

Instantly share code, notes, and snippets.

Ming Zhou zhouming

Block or report user

Report or block zhouming

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2262185
var a = 1;
ar b = 2;
View gist:2275127
alert('Hello World');
String.prototype.trim = function(){}
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()) {
$this->CI =& get_instance();
You can’t perform that action at this time.