UNKNOWN //************************************** // Name: Get current logged user user_id in Social Engine 4 // Description:How to get current logged user user_id in Social Engine 4 As you know that Social engine used Zend framework. In any page if you need current logged in user's user_id then you can find it via this one piece of line code: // By: Amit Kumar Gaur // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //This code is copyrighted and has limited warranties. //Please see http://www.Planet-Source-Code.com/xq/ASP/txtCodeId.3017/lngWId.8/qx/vb/scripts/ShowCode.htm //for details. //************************************** Find here other code: http://amitkgaur.blogspot.in/2012/01/get-current-logged-user-userid-in.html $currentUserID=Engine_Api::_()->user()->getViewer()->getIdentity(); echo $currentUserID; now current logged in user's id stored in the variable $currentUserID, you can use it in your code as you want.