11-19-2010, 02:59 AM
[eluser]SPeed_FANat1c[/eluser]
Now I get.
You must add line manually if you want data to be saved in database
If you don't add this line I guess it only is saved on cookie? So I don't have to add this line everywhere I use line
. Just where I need data to be in database.
Edit:
Figured out that I need
where I set userdata in ajax function. So I have edit all ajax functions in my project which sets userdata. Or I have edit sess_write function, not to check $write variable if it is TRUE. As I understand it decreases performance. My project is not that big so maybe the performance decrease will not be that big.
Now I get.
You must add line manually if you want data to be saved in database
Code:
$this->session->sess_write(TRUE);
If you don't add this line I guess it only is saved on cookie? So I don't have to add this line everywhere I use line
Code:
$this->session->set_userdata($data);
Edit:
Figured out that I need
Code:
$this->session->sess_write(TRUE);
where I set userdata in ajax function. So I have edit all ajax functions in my project which sets userdata. Or I have edit sess_write function, not to check $write variable if it is TRUE. As I understand it decreases performance. My project is not that big so maybe the performance decrease will not be that big.