I use the CookieTempDataProvider for our production web site and it seems to be working really well. We have a 2 server web farm. The site has been live for around 6 months, and we have experienced no issues, although the site does not get a lot of traffic.
I use the CookieTempDataProvider to store status messages that are to be displayed when a view loads. For example:
- User edits a form and hits the save button. This is a post.
- In the POST action method, I save the data, then push a confirmation message into TempData. Then I issue a RedirectToAction, to a GET action.
- In the GET action method, I retrieve the message from the TempData and put it in the ViewData. Then I do my other data stuff and return the view.
- On the view I check if the model has a message, and if so, display it.
Things to note:
- I am using ASP.NET MVC 1.0.
- I am using MVC Futures 1.0.
- The CookieTempDataProvider did not work for me as is; I had to modify the code to get it working: see this post.