user382635
user382635

Reputation: 13

Asp.net MVC 2.0 TempData expiration

What happens in Asp.Net MVC 2.0, when next request does not come ever to retrieve value from TempData. Is it stored permanently or expires?

Upvotes: 1

Views: 4193

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038930

As TempData is stored in session it will expire along with the session. Also note that TempData is not expired when it is retrieved but on the next request no matter whether you access it or no.

Upvotes: 6

Related Questions