Welcome Guest, Not a member yet? Register   Sign In
Session Library another Error
#2

[eluser]pistolPete[/eluser]
You need to use the function set_userdata()!
Please see the user guide:
Quote:Adding Custom Session Data
...
To add your data to the session array involves passing an array containing your new data to this function:
Code:
$this->session->set_userdata($array);


Code:
if($this->session->userdata('hash_string'))
{
    $this->session->set_userdata(array('last_hash_string' =>   $this->session->userdata('hash_string')));
}
$this->session->set_userdata(array('hash_string' => random_string('alnum', 6)));


Messages In This Thread
Session Library another Error - by El Forum - 06-20-2009, 08:45 PM
Session Library another Error - by El Forum - 06-21-2009, 02:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB