Welcome Guest, Not a member yet? Register   Sign In
Session Class
#2

[eluser]verynewtothis[/eluser]
These are the steps (also available in the CI docs)
Load session library
Code:
$this->load->library('session');
Set session variable
Code:
$this->session->set_userdata('some_name', 'some_value');
Read Session Variable
Code:
$this->session->userdata('some_name');
Destroy Session Variable
Code:
$this->session->unset_userdata('some_name');

To modify the session expiring times, go to application/config/config.php and modify "sess_expiration"


Messages In This Thread
Session Class - by El Forum - 08-17-2009, 10:12 AM
Session Class - by El Forum - 08-17-2009, 11:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB