Welcome Guest, Not a member yet? Register   Sign In
I am using IS_AJAX but sometimes still get disconnects
#7

[eluser]SPeed_FANat1c[/eluser]
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);
. Just where I need data to be in database.

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.


Messages In This Thread
I am using IS_AJAX but sometimes still get disconnects - by El Forum - 11-16-2010, 08:41 AM
I am using IS_AJAX but sometimes still get disconnects - by El Forum - 11-16-2010, 11:15 AM
I am using IS_AJAX but sometimes still get disconnects - by El Forum - 11-16-2010, 02:36 PM
I am using IS_AJAX but sometimes still get disconnects - by El Forum - 11-16-2010, 02:42 PM
I am using IS_AJAX but sometimes still get disconnects - by El Forum - 11-16-2010, 02:48 PM
I am using IS_AJAX but sometimes still get disconnects - by El Forum - 11-17-2010, 07:11 AM
I am using IS_AJAX but sometimes still get disconnects - by El Forum - 11-19-2010, 02:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB