Jump to content

codeigniter - need help with Online Users library


moshair

Recommended Posts

Hello,

I am trying to use the Online Users library at:

https://github.com/bcit-ci/CodeIgniter/w...line-Users

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!

Regards,

Onlineusers_ci_3b.zip

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
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.