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 8950855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:31:54+00:00 2026-06-15T13:31:54+00:00

My MVC application is running under Windows Authentication. I have used TempData at various

  • 0

My MVC application is running under Windows Authentication.

I have used TempData at various places in my application. The problem is that, they get clear with session timeout. however, the Windows login is still running. How can I set them to remain intact until the user logs off his windows login.. I mean, there shouldn’t be any timeout as such. is it possible?

  • 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-06-15T13:31:55+00:00Added an answer on June 15, 2026 at 1:31 pm

    TO my understand, TempData only gets persist it’s value till the next action, which is why it’s called “Temp”Data. And a session will be only be able to maintain the data for current user session.

    If you don’t want timeout(which sounds really weird to me and i can smell bad code practice) then use Cache or persist data to database. You can keep the data as long as you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While debugging an ASP.Net MVC application running under IIS Express, I get the following
I have a Spring 2.5.6 MVC application that I'm running on Tomcat 7. However,
Right now I have an MVC application running on http://127.0.0.1:8081/ (it is actually running
I have an Asp.net MVC application running on AppHarbor. It has the everyday email
I'm building an MVC application which uses Windows Authentication. I want to handle a
I'm developing an MVC application and I have a routine that gets the currently
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I have an ASP.NET MVC web application running in IIS as a subweb; let's
We use MVC controllers that access System.File.IO in our application and they work fine
I have this web app that is running ASP .NET MVC 1.0 with LINQ

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.