CodeIgniter Forums

Full Version: freakauth retrieving username from db_session
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I was going through the Tips and tricks freakauth documentation and I noticed a small snafu on:

Quote:How to get logged in users data

It is possible to get the following data from the user session with the following methos:

* user id: $this->db_session->userdata('id');
* username: $this->db_session->userdata('username');
* user role: $this->db_session->userdata('role');

Should be:
Quote:* username: $this->db_session->userdata('user_name');

El Forum

Thanks, Dan will update the page soon.

El Forum

Cheers CogSly,

corrected the docs!