Topic: Accessing user information once user is logged in (Read 1594 times)
Google dot what?
Posts: 2
16 credits Members referred : 0
« on: Mar 17, 2009, 03:36:29 pm »
Hi,
First off, great class. I've been able to tailor it to my application quite easily.
My question regards accessing user information once they are logged in. To access a specific page of our website, you need to log in. Once the user has successfully logged in, they are immediately redirected to that page. On that page, I'd like to welcome them by stating
Welcome $user!
However, $user is not the write string to use. Any suggestions?
Thanks
Google dot what?
Posts: 2
16 credits Members referred : 0
« Reply #1 on: Mar 17, 2009, 04:31:23 pm »
Believe I solved it.
I created a new function in access.class
Code:
function whoami() { return $this->userData[$this->tbFields['login']]; }