I try to pass data from one view to another in ASP.NET MVC. So I try to use HttpContext.Session.SetString("Username", model.UserName.ToString());.
HttpContext.Session.SetString("Username", model.UserName.ToString());