CodeIgniter Forums
freakauth retrieving username from db_session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: freakauth retrieving username from db_session (/showthread.php?tid=2056)



freakauth retrieving username from db_session - El Forum - 07-13-2007

[eluser]Unknown[/eluser]
I was going through the Tips and tricks freakauth documentation and I noticed a small snafu on:

http://www.4webby.com/freakauth/documentation/freakauth_light.html

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');



freakauth retrieving username from db_session - El Forum - 09-02-2007

[eluser]Grahack[/eluser]
Thanks, Dan will update the page soon.


freakauth retrieving username from db_session - El Forum - 09-03-2007

[eluser]danfreak[/eluser]
Cheers CogSly,

corrected the docs!

Dan