[eluser]riwakawd[/eluser]
[quote author="Tim Brownlaw" date="1398407924"]I'm only going to address the "undefined variable issue".
The rest scares me... ie your constructor!
Now, Is it telling you which variable is undefined?
Are you checking things like if - $this->session->userdata['user_id'] actually exists...
and $this->request->server['REMOTE_ADDR'] exists?
[/quote]
How would you set it out in library file? I have been looking on internet thats how I got it. I also got token working.