Skip to content

Instantly share code, notes, and snippets.

Working from home

David Domingo Snesi

Working from home
View GitHub Profile
benedmunds / MY_Session.php
Created Jul 15, 2013
MY_Session to enable native PHP sessions in CodeIgniter
View MY_Session.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Session extends CI_Session
public function __construct($params = array())
log_message('debug', "Session Class Initialized");
// Set the super object to a local variable for use throughout the class
$this->CI =& get_instance();