In normal asp.net, we can get the value of this by giving:
UserSessionID = System.Web.HttpContext.Current.Session.SessionID;
IPAddress = System.Web.HttpContext.Current.Request.UserHostAddress;
How can we get the same in .Net Core. Can anyone help?