Codeigniter Current Logged in user

Posted by KierenT on Stack Overflow See other posts from Stack Overflow or by KierenT
Published on 2011-01-03T19:48:24Z Indexed on 2011/01/03 20:54 UTC
Read the original article Hit count: 156

Filed under:
|
|
|

In Codeigniter, I have a login/registration form all set up, working perfectly, however how can I output the current users username, i.e. When the user has logged in it would say "Welcome, [username]".

I also need to know this, to be able to output from the database the record based on the current users ID, how can I do that? I've browsed the docs on codeigniter but couldn't find what i was looking for. I'm using active record btw.

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter