Welcome Guest, Not a member yet? Register   Sign In
What is the best practice to unset session variable in codeigniter?
#1

Hi,

What is the best practice to unset session variable in codeigniter?

Option 1: unset($_SESSION['some_variable']);

Option 2: $this->session->unset_userdata('some_variable');

Will anybody suggest me, what is the best and why?
Reply


Messages In This Thread
What is the best practice to unset session variable in codeigniter? - by curiousteam - 08-22-2017, 11:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB