Hi i need to fetch the id of the live user and i am able to do it.but the problem arises when i switch from one Port to another it does not fetch the user on another port
I have done this:
public static Nullable<int> GetLiveUser()
{
if (HttpContext.Current.Session[ConstantHelper.LoginAccountID] != null)
{
return ((int)HttpContext.Current.Session[ConstantHelper.LoginAccountID]);
}
else
{
return null;
}
}
ConstantHelper is a class with LoginAccountID as a property.
Please help me