Created
May 4, 2017 09:59
-
-
Save mahbub-shohag/35bf4f47b66bdb9631de3ea52a3dc36c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set session data | |
$newdata = array( | |
'username' => 'johndoe', | |
'email' => '[email protected]', | |
'logged_in' => TRUE | |
); | |
$this->session->set_userdata($newdata); | |
unset | |
unset($_SESSION['some_name']); | |
// or multiple values: | |
unset( | |
$_SESSION['some_name'], | |
$_SESSION['another_name'] | |
); | |
retrieve session data | |
$this->session->userdata('item'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment