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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:03:46+00:00 2026-05-11T06:03:46+00:00

Is there any other reasoning other than the timeout setting in the web.config not

  • 0

Is there any other reasoning other than the timeout setting in the web.config not being used? It might be the default timeout of 30 minutes but it is definitely less than 30 minutes.

        <authentication mode='Forms'>         <forms timeout='50000000' loginUrl='content/login.aspx'/>     </authentication> 

And for the code behind on my Login.aspx page:

    protected void LoginButton_Click(object sender, EventArgs e) {     if (Membership.ValidateUser(UserName.Text, Password.Text))     {         FormsAuthentication.RedirectFromLoginPage(UserName.Text, RememberMe.Checked);     }     else     {         FailureText.Text = '<br/>Login Failed. Please try again';     }  } 

[Edit]

I believe the timeout occurs around 10 minutes of idleness..

  • 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. 2026-05-11T06:03:46+00:00Added an answer on May 11, 2026 at 6:03 am

    The ASP.NET authentication timeout can be set in the web.config file (as you’ve shown in your question), however, this can also be set in code. Do you have any areas of your C# code that explicitly set the forms timeout value? If so, the setting in code will override the web.config setting.

    Another possibility is the use of a code-generated forms authentication cookie. This is usually done, again in the C# code, with something like the following:

    FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(                                                             name,                                                             isPersistent,                                                             expirationTime); 

    If you create a specific FormsAuthenticationTicket with a timeout setting of (for example) 60 minutes, whilst your web.config setting indicates 30 minutes, the ticket set from within code will override the web.config setting.

    Please note that the ASP.NET Session and the IIS Session time out values should have no effect on your forms authentication timeouts.

    Of course, as a last possibility, since forms authentication is usually based upon a client-side cookie, it could just be possible that the user is clearing/deleting the cookie. This would of course result in the user not being authenticated with your website.

    Please also take a look at this post from Scott Forsyth on the weblogs.asp.net site that details these very issues.

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

Sidebar

Related Questions

Are there any other ways to avoid LazyInitializationExceptions in a Hibernate web application besides
Is there any other solution for testing android applications other than using that slow
Is there any other way to do this that might prevent the setTimeout to
Is there any other software that can make application for iphone other than xcode...
Is there any other way to reference the current object in php other than
Are there any other web developement / design environments available, that are similar to
Are there any other IDEs worth my time for Lotus Notes development? We're doing
Is there any other place besides the metabase.xml file where the file upload size
Is there any other command for redirecting a controller to a particular view page
Are there any other packages for doing Venn diagrams in R besides the limma

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.