'Fatal error: Call to undefined method CI_Session::sess_destroy() 1.7.2
My current version of ci is 1.7.2 but ehen i am using
$this->session->unset_userdata('uid');
$this->session->unset_userdata('email');
$this->session->sess_destroy();
in my controller an below shown is my class controller
function Account()
{
parent::BEV_Controller();
$this->load->model('facebook_model');
$this->load->library('session');
$this->form_validation->set_error_delimiters('<div class="error">', '</div>');
}
Solution 1:[1]
When you are trying to destroy the session also, you have to load $this->load->library('session');
That should be the reason,
So load session library automatically, It's more convenient rather than calling $this->load->library('session') every where.
It's in application/config/autoload.php
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shaolin |
