Jump to content

codeigniter - need help with Online Users library

Recommended Posts


I am trying to use the Online Users library at:


In config/autoload.php I set:

$autoload['libraries'] = array('database','session','onlineusers');

I use Codeigniter v3.0.4

The 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!



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.