Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 790009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:37:02+00:00 2026-05-14T21:37:02+00:00

UPDATE: looks like I’ve misunderstood what TempData is for and what it isn’t. It

  • 0

UPDATE: looks like I’ve misunderstood what TempData is for and what it isn’t. It definitively shouldn’t be used to “keep certain session-wide data” as I asked initially (see ASP.NET MVC TempData Is Really RedirectData why). I’ve modified the question accordingly.

Has anyone used CookieTempDataProvider for TempData storage? Are there any caveats to watch out for (apart from keeping the session storage small)? Any issues with using it on Web farms?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:37:02+00:00Added an answer on May 14, 2026 at 9:37 pm

    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:

    1. User edits a form and hits the save button. This is a post.
    2. 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.
    3. 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.
    4. On the view I check if the model has a message, and if so, display it.

    Things to note:

    1. I am using ASP.NET MVC 1.0.
    2. I am using MVC Futures 1.0.
    3. The CookieTempDataProvider did not work for me as is; I had to modify the code to get it working: see this post.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE It looks like this problem has been quietly fixed in iOS 4.3. Up
It looks like Django does not update last_login field in auth_user model when a
UPDATE: OK I figured it out, looks like fread has a filesize limitation, changed
Update As suggested by many people, it looks like this was because of the
I have some code to update a database table that looks like try {
Update Looks like Jon Skeet was right (big surprise!) and the issue was with
How do I get a sound file's total time in Java? --UPDATE Looks like
Update: It looks like the problem is when I'm reading the value from the
Update: looks like this is indeed a WiX limitation - Cannot add 64bit com+
Update Looks like browsers are starting to support copy natively in JS In the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.