get userID or profileID in seperate php file

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

 

 

Quote · 21 Feb 2014

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
Quote · 21 Feb 2014

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
Quote · 21 Feb 2014

$_COOKIE['memberID'] it is.

thanx i found it.

Quote · 21 Feb 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.