I am trying to pull the currently logged on member's iMIS ID following the Guidlines for Developing iParts from the Innovations Converence (sepcifically duplicating the GetCurrentiMISID method:
public string GetLoggedinIMISID()
{
string _id = "";
try
{
if (Asi.Security.AppPrincipal.CurrentIdentity.IsAuthenticated && Asi.Security.AppPrincipal.CurrentIdentity.ContactMaster != "")
{
_id = Asi.Security.AppPrincipal.CurrentIdentity.ContactMaster;
}
}
catch { }
return _id;
}
I don't get any compile or runtime errors, it just returns blank values. I am trying to read from a custom table and just display data in a datagrid. This is 15.0.3 if that matters. It is an aspx page with code behind. Any thoughts/help would be greatly appreciated. I am losing my hair fast enough as it is, thank you.
Use SessionState in ContentManagerNet assembly..
Im presuming this is in eCM .net.
If it is, then we have always used the following:
CContactUser contactUser = Asi.ContentManagerNet.SessionState.User;
The SessionState object usually contains logged in status as well.
Nasser