What is the best practice to unset session variable in codeigniter? |
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? |
Messages In This Thread |
What is the best practice to unset session variable in codeigniter? - by curiousteam - 08-22-2017, 11:10 AM
RE: What is the best practice to unset session variable in codeigniter? - by dave friend - 08-22-2017, 01:26 PM
RE: What is the best practice to unset session variable in codeigniter? - by curiousteam - 08-22-2017, 10:37 PM
|