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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:01:39+00:00 2026-06-12T07:01:39+00:00

I have an ASP.NET MVC3 application deployed to a shared hosting service. It uses

  • 0

I have an ASP.NET MVC3 application deployed to a shared hosting service. It uses FormsAuthentication and SSL:

<authentication mode="Forms">
  <forms loginUrl="~/Home/Index" timeout="240" requireSSL="true" />
</authentication>

The problem is in some Razor (partial) views: I execute a callback to a controller method which, for purposes of testing, simply sleeps and returns a PartialView. My question revolves around Response.IsAuthenticated. It is true before the callback and sleep and remains true afterwards as long as the sleep is 30 seconds or less. However, I’ve tested it with various longer durations (e.g. 55 seconds) and Response.IsAuthenticated becomes false in those cases. This is a problem because in my original code I need to do a redirect (via JS, open.window, in my Partial View). Since Response.IsAuthenticated is false FluentSecurity immediate sends the user to the loginUrl (which I don’t want).

It seems that this would be related to a timeout somewhere (“KeepAlive”,”ServerTimeout”?) but I’ve Googled response.isauthenticated timeout and come up with nothing. Frankly, this behavior seems to be occurring throughout the site: if the user leaves the page sitting (I’m using FF) for more than a minute or so then when they try to access a page they are automatically being redirected to the loginURL. Note that my session timeout is set to “120”. Funny thing is I did not experience this behavior when the app was deployed to Windows Azure (there were other issues, though); it just started happening when I switched to a different host.

Any pointers to info on this topic would be appreciated.

  • 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-12T07:01:40+00:00Added an answer on June 12, 2026 at 7:01 am

    Maybe the host is killing the AppPool in the server when it is a few seconds idle.

    You log the app ShutDown event to see if that’s the case: http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspx

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

Sidebar

Related Questions

I have an ASP.NET MVC 3 application with the following web.config settings. <authentication mode=Forms>
I use a shared hosting provider that doesn't have asp.net mvc3 installed. When deploying
I have a ASP.NET MVC3 application, which uses JSON to comunicate with a Flash
I have an ASP.NET MVC3 application that uses entities generated from a database. Each
I have asp.net mvc 3 site deployed on shared hosting. My problem is that
I have an asp.net mvc3 C# application. It uses a database. The database supports
I have an ASP.NET MVC3 application that I have built and it has two
I have a ASP.NET MVC3 application that handles time-consuming processes (copying a large file
I have written an ASP.NET MVC3 Web application which runs perfectly inside the Visual
In my asp.net mvc3 application, I have a custom Authorization Attribute as seen below.

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.