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

The Archive Base Latest Questions

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

I have two sites running on the same server (IIS7 on Win2003). Site A

  • 0

I have two sites running on the same server (IIS7 on Win2003).

Site A is my production site.

Site B is a development version of site A. Aside from connection strings in its web.config file, both sites are running the same code.

There are some session variables created in Session_OnStart in global.asax. I’ve noticed over the past couple weeks, Site A’s session variables aren’t being properly created. (These variables are used to populate a couple of dropdownlists) This causes the drop-downs not to auto-populate or other errors depending on the page the user is trying to hit.

Site B’s session variables have been working correctly. When I hit Site B, the drop-downs populate as I expect.

The first thing I want to try is an IIS reset to see if this corrects the problem, but I’m wondering why my sessions wouldn’t be created correctly if both sites are running the same code?

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

    I figured out a solution but I’m still at a loss as to why this is happening.

    I wound up coding defensively to handle the session variable I’m interested in not being properly initialized. When this happens I’ve got code that properly sets the variable. (In all the years I’ve been a .NET developer, this is the first time session has been an issue)

    I can rule out most of the common causes – I know the session wasn’t timing out, and I know no updates were made to web.config or any IIS settings (it’s a production site, so nobody touches IIS without putting in a support ticket, and the only person who puts in support tickets for IIS is me).

    This seemed to be a problem when users clicked on a particular link in the site. For some reason visiting this particular page caused the session variable to be lost. I’m at a loss to explain the why but at least I’ve got the code working and not throwing an exception anymore.

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

Sidebar

Related Questions

I have two development sites call api.localhost and game.localhost . Both are running from
I have two sites running essentially the same codebase, with only slight differences in
I have multiple sites for the same client, on the same server, running django,
I have two websites running on one server in IIS7.5 and would like to
I have two databases on one machine that also has two different sites running
We are having the two different website running for different products (both sites have
Lets say a have two sites. Site A and site B. On site A
I have two ASP.NET sites (they can not run in the same process) and
I have two websites running on the same IIS instance on the same 2008
I have two websites hosted on the same IIS server. SiteA contains WCF services

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.