@model string @inject IHttpContextAccessor Http @{ ViewBag.Title = "Hello Razor"; var session = Http.HttpContext.Session.GetString("username"); }