/** * Initializes a unique request ID to identify current request * * @return string */ private static function initRequestUID() { $user_id = CUser::get()->_id; $uid = uniqid("", true); $address = get_remote_address(); $ip = $address["remote"]; // MD5 is enough as it doesn't have to be crypto proof self::$requestUID = md5("{$user_id}/{$uid}/{$ip}"); }