TransWikia.com

Fatal error: Call to undefined method CI_Session::sess_destroy() 1.7.2

Stack Overflow Asked by Kate Willson on September 15, 2020

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>');
}

One Answer

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

Answered by Shaolin on September 15, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP