TempData persisting after read in ASP.NET MVC 2
问题 In ASP.NET MVC 2, TempData values persist until the session ends or until they are read. In the words of Microsoft... The value of TempData persists until it is read or until the session times out. Persisting TempData in this way enables scenarios such as redirection, because the values in TempData are available beyond a single request. I thought I understood this but I just came across unusual behavior in my application where a TempData value was available and it should not have been