Welcome Guest, Not a member yet? Register   Sign In
extending native session class codeigniter 1.7.2
#1

[eluser]Unknown[/eluser]
I'm using native session library to replace the built in session library in CI. I need to extend the class but when I drop in MY_Session.php, CI reverts back to the old /system/libraries/Session.php.

How to I extend a class that's replaced a core CI class like Session.php?
#2

[eluser]CroNiX[/eluser]
/application/libraries/MY_Session.php

Code:
class MY_Session extends CI_Session {
  function __construct()
  {
    parent::__construct();
  }
  
  //rewrite existing methods or create your own below here
}




Theme © iAndrew 2016 - Forum software by © MyBB