[jaring] set profile id in the cookies.