Which is the best approach to assign a session in MVC?
1.System.Web.HttpContext.Current.Session["LoginID"] =7;
2.Current.Session["LoginID"] =7;
3.Session["LoginID"] =7;
4.None of these
Answer:2
Posted Date:-2022-09-29 03:51:01