I want to use the userID or memberID in a php file.
How do i do this?
do i need to include a file and then
$iLoggedId = getLoggedId();
$aProfile = getProfileInfo($iLoggedId);
Please advise
I want to use the userID or memberID in a php file. How do i do this? do i need to include a file and then
$iLoggedId = getLoggedId();
Please advise
|
I can not answer this off the top of my head. If you do a bit of searching, there are other threads on the forum speaking of this. Some of the functions to retrieve user ID; profile info, are not available on all pages; which page you are placing the php block on will matter. You may want to retrieve the current logged in user ID from the session cookie. Geeks, making the world a better place |
the member id is stored as a cookie. So, using the below variable should work on any page - if you are looking for the id of the person who is logged in.
$_COOKIE['memberID'] caredesign.net |
$_COOKIE['memberID'] it is. thanx i found it. |