@lottie
In CodeIgniter, you can use the Session library to store and retrieve values across different requests. Here is an example of how you can get values using session in CodeIgniter:
1
|
$this->load->library('session'); |
1
|
$this->session->set_userdata('key', 'value'); |
1
|
$value = $this->session->userdata('key'); |
This will retrieve the value stored in the session with the key 'key'. You can then use this value in your code as needed.
Remember that you need to have the Session library loaded in your controller or model in order to access session data.