Unload session library for API und XMLRpc

This commit is contained in:
Eike Foken
2011-09-16 15:01:55 +02:00
parent c30c68d3eb
commit 7ede6d8d21
2 changed files with 10 additions and 0 deletions

View File

@@ -28,6 +28,14 @@
*/ */
class Api extends CI_Controller { class Api extends CI_Controller {
/**
* Unloads the session library.
*/
public function __construct() {
parent::__construct();
unset($this->session);
}
/** /**
* Update the state of a given job. * Update the state of a given job.
* *

View File

@@ -32,6 +32,8 @@ 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');