Hi All,
Recently I run into the issue of where(how) to find iMIS ID of currently logged in user in iMIS Public views.
After some research I finally come up with folowing code:
// VERY USEFULL ONE - Returns iMIS ID for currently Logged in USER
private string GetCurrentiMISID()
{
string _id = "";
if (Request.Cookies["UserID"] != null)
{
_id = Request.Cookies["UserID"].Value;
Secure _tool = new Secure();
_id = _tool.Decrypt(_id);
}
return _id;
}
Please let me know if is helpfull and I promise to post more :))))
It's helpful
Keep posting :)