I have a controller logic that is looking for: session value
//checks value null etc.. for existing record in session memory.
Session["certnum"]
Then in the controller I decided to have a condition in which:
Session.Abandon();
However, in procedural encoding, this is Session.Abandon (); precedes the creation of TempData ["myobject"] = "foo", and after passing the code TempData in the next window shows my value, and everything seems to be good. Then, when redirecting to another controller:
return RedirectToAction("ChildInfo", "NewRecord");
ChildInfo TempData... null. Abandon Session , TempData, , MVC, . TempData, . Session.Abandon(), TempData , .