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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:04:47+00:00 2026-06-17T13:04:47+00:00

I had to update an old ASP+COM application for a customer when they went

  • 0

I had to update an old ASP+COM application for a customer when they went from Windows 2003 to 2008R2. The process, while not 100% painless, was sucessful but one problem remains: the application seems to randomly lose the session state or, at least, the session variable where I save the session’s COM object.

Basically, the app works like this:

Login form page -> login page (object is created there and saved in Session(“MyObject”), user credentials are checked -> First actual application page (Session(“MyObject”) is checked at the top of the code).

The Second redirect only happens if the credentials are correct but the object is always created.

However, users are reporting that they are frequently being redirected to the logon form page after entering their credentials.

After some investigation, it seems that the application properly goes through the login page, creates and instance of the COM object and redirect to the first application page. And there, the session variable is empty again and so the user is sent back to the login form.

What’s more is that it is by far not systematic: the problem happens rather frequently but definitely not all the time. When it starts, users have to log on 2 or 3 times before they can get through. If the application is recycled, it usually solves the issue for some times although this isn’t systematic and this isn’t even always necessary.

Anyone has any idea what could be going on here ?

Edit: some extra info:

  • ASP session handling is active
  • In no part of the code are errors being silently suppressed. They will go to a log file if they happen somewhere the COM object can catch them or the user otherwise.
  • No error can be seen in the COM object log file, in the IIS log or in the server’s event log.
  • Tracing the process activity with ProcMon didn’t turn up anything special.
  • Looking at the COM object log file, I clearly see the COM object instance being created, the “LoginUser” method being called from the login page and returning successfully and then the first application page being called and the check for the existence of the object stored in the session failing.
  • There is a single web server, no server farm.
  • 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-17T13:04:48+00:00Added an answer on June 17, 2026 at 1:04 pm

    I did have an asp website that did exactly the same thing in the past. You need to check the log files and see if this application or website is running on it’s own dedicated application pool and that the application pool is not being auto recycled due to bad code. If the session is being created then dropped, then pass the initital session value to another session – say Session(“MyObject2”) and check for that in the main page. If the users are still getting logged off then I am sure that the application pool is being recycled due to too many failures such as a redirect infinite loop or something else.

    Edit: One more thing. I used to see such errors a lot when using ASP with MS Access and could never figure that out.

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

Sidebar

Related Questions

I was recently asked to update an old Access Forms application. Coming from a
UPDATE: I had ghost entries in my database of games without players from before
I pulled from origin to update my local, and one file had conflicting changes.
Prior to the asp.net 4 RC update, I had been using the WebApi for
I did an svn update from the command line on a fairly old sandbox
I recently had to update one of my model's properties from type StringProperty to
I was trying to update a framework that we used before, since they had
I had successfully re-written almost all my urls from the old form to fine
In our old system we had pages rendered from XSLT. In order to change
I updated my User class, and now whenever someone that had the old version

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.