moshair Posted January 23, 2016 Share Posted January 23, 2016 Hello,I am trying to use the Online Users library at:https://github.com/bcit-ci/CodeIgniter/w...line-UsersIn config/autoload.php I set: $autoload['libraries'] = array('database','session','onlineusers'); I use Codeigniter v3.0.4The problem is: set_data() it is not working so the onlne guest can't be online member after loging in, it should wait for the timeout to update. I use "Authme Authentication Library"I added the code to the libraries/Authme.php in login() function $this->CI->onlineusers->set_data(array('username'=>$user->username,'id'=>$user->id), 1); Onlineusers.php, and Authme.php are attached. Can someone help me?Also I tried to use set_data in a controller; it is not working!Regards, Onlineusers_ci_3b.zip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.