Destroy session before unloading the library
This commit is contained in:
@@ -33,6 +33,8 @@ class Api extends CI_Controller {
|
|||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
|
$this->session->sess_destroy();
|
||||||
unset($this->session);
|
unset($this->session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,14 +32,15 @@ class Xmlrpc extends MY_Controller {
|
|||||||
* Calls the parent constructor.
|
* Calls the parent constructor.
|
||||||
*/
|
*/
|
||||||
function __construct() {
|
function __construct() {
|
||||||
unset($this->session); // unload sessions
|
|
||||||
|
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->library('xmlrpc');
|
$this->load->library('xmlrpc');
|
||||||
$this->load->library('xmlrpcs');
|
$this->load->library('xmlrpcs');
|
||||||
|
|
||||||
$this->load->model('server');
|
$this->load->model('server');
|
||||||
|
|
||||||
|
$this->session->sess_destroy();
|
||||||
|
unset($this->session); // unload sessions
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user