Skip to content

Instantly share code, notes, and snippets.

View Snesi's full-sized avatar
🏠
Working from home

David Domingo Snesi

🏠
Working from home
View GitHub Profile
@benedmunds
benedmunds / MY_Session.php
Created July 15, 2013 23:14
MY_Session to enable native PHP sessions in CodeIgniter
<?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();