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>');
}
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
1 Asked on October 13, 2020 by knguyen
1 Asked on October 11, 2020 by user12344
3 Asked on October 11, 2020 by reizo
1 Asked on October 10, 2020 by gonzalo-polo
2 Asked on October 9, 2020 by nguyenvivian
0 Asked on October 8, 2020 by paul-martnez-llerena
2 Asked on October 8, 2020 by vldcndn
1 Asked on October 7, 2020 by solar
1 Asked on October 7, 2020 by theoriginof3
1 Asked on October 7, 2020 by user1999453
3 Asked on October 7, 2020 by deitch
2 Asked on October 6, 2020 by raj-endla
0 Asked on October 6, 2020 by madara
1 Asked on October 3, 2020 by singh
0 Asked on October 2, 2020 by turqay-umudzade
3 Asked on October 1, 2020 by pythoncreator
2 Asked on October 1, 2020 by user716255
1 Asked on September 30, 2020 by defarm
Get help from others!
Recent Answers
© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP