[eluser]whygod[/eluser]
Okay I created my own library below,
also extended MY_Controller.
Code:
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
class Jaz_lib extends MY_Controller
{
public $data = array(
'' => '',
);
function __construct ()
{
parent::__construct();
}
public function logout()
{
//Destroy session
$this->session->sess_destroy();
//Delete coockie
return TRUE;
}
}
Just want to know if I'm doing it right?