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

  • Home
  • SEARCH
  • 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 7804905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:03:48+00:00 2026-06-02T02:03:48+00:00

I am developing a web app using MVC 3 that is using standard form

  • 0

I am developing a web app using MVC 3 that is using standard form authentication. It is hosted on a shared hosting. The problem is that sometimes the user authentication state is lost. I get no exception at all. Do you have any clue what can be the cause?

Does authentication has anything to do with session? I am not using Session object at all.
I was of the impression that Authentication using cookie can work in a load balanced environment. Am I wrong?

The session is lost before the 20 minutes timespan.

  • 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-02T02:03:49+00:00Added an answer on June 2, 2026 at 2:03 am

    A couple of things come to mind here:

    1. Is there any pattern to the lost authentications? Meaning, is it always after 20 minutes or is it really seemingly random?

    2. Since you are on shared hosting, do you explictly set your machine keys in your web.config? If you do not and they are set to auto generate, the keys will be different if your application is load balanced. Thus you authenticate on server A and some subsequent request goes to server B, your application will not be able to decode the authorization cookie and ‘kick you out’

    In a Web farm, you cannot guarantee which server will handle
    successive requests. If a user is authenticated on one server and the
    next request goes to another server, the authentication ticket will
    fail the validation and require the user to re-authenticate. The
    validationKey and decryptionKey attributes in the machineKey element
    are used for hashing and encryption of the forms authentication
    ticket. The default value for these attributes is
    AutoGenerate.IsolateApps. The keys are auto-generated for each
    application, and they are different on each server. Therefore,
    authentication tickets that are encrypted on one computer cannot be
    decrypted and verified on another computer in a Web farm, or in
    another application on the same Web server. To address this issue, the
    validationKey and decryptionKey values must be identical on all
    computers in the Web farm.

    See here for more information on that second bit.

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

Sidebar

Related Questions

I am developing a web app (using rails) that I will be launching within
I'm developing web app that user can save his/her work to server. The data
I am developing an asp.net MVC web app in which I am using Linq
I am developing a web app using silverlight. I read that Microsoft offers 10
I'm developing an web app using asp.net mvc. I have a List in Cache
I'm developing a web app in asp.net mvc using jquery, the language of application
I am developing a MySQL Web App using ASP.net and I have heard that
Does anyone have an experience with developing a big web app using ASP.NET MVC
I'm developing a web app for iphone using dashcode. I'm stuck where user needs
I am developing a web app using zend framework and the problem is about

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.