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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:40:50+00:00 2026-05-30T14:40:50+00:00

I spoke about this in a previous question, but I have since narrowed down

  • 0

I spoke about this in a previous question, but I have since narrowed down the issue to make it possible to be answered. First, some background.

I have an ASP.net website that functions normally on the local server, but when it’s on the live server and accessed externally, it has some session data issues that make occasionally throw errors. The first issue turned out to be an problem with IE9. The session variable just wouldn’t persist after it reached the second page and hit the stored procedure. I fixed this by foring the page to run in IE7 mode with –

This still occurs on some browsers (specifically it occurs -once- with firefox) but I created a loop that forces it back to the menu page when the session variable is blank so it just appears as the page didn’t load and the “open” button can be pressed again.

However, the new problem happens when I attempt to save the data on a form. It passes a few session variables in to the stored procedure interface (like staff ID and such) and what appears to happen is that it times out. However, all of the timeouts for the session set in webconfig and IIS are extremely high numbers (many hours) and the worker processes are set to never expire or recycle. Also, it happens even after a minute or two so it can’t be the timeout hitting. It’s just like it randomly loses the session values. The weird thing is that if you go back and save again – performing the same actions with the same data – it tends to work. Sometimes it takes a few iterations of this but ultimately it will work.

The strange thing is also that it tends to randomly lose pieces of the viewstate – such as field values – but that might be unrelated and have more to do with the fields that are filled automatically at load. But I thought I’d include that in case it offers and information as to why it might be doing this.

I’m considering a workaround by dumping the session variables in to viewstate variables as soon as the page loads, but I’d really like to address the problem directly so I don’t have to deal with it in the future when I can’t do something like that. Is there some poriton of IIS (It is IIS 6 by the way) that could be the culprit? Are session variables just known for dying when being thrown around a lot? I can’t say I know a great deal about server set up but I’ve learned a lot from this situation and beating this will be a wonderful victory for my morale. Thank you for reading and sorry it’ so long!

  • 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-05-30T14:40:51+00:00Added an answer on May 30, 2026 at 2:40 pm

    I actually found the real solution this time around. It still doesn’t make a lot of sense but I thought I’d bring it here just for everyone to see. It turns out, one of the dates that was being pulled from a table was being stored in the session variable as a blank (even though it shouldn’t have been) and then somehow, even though there was an if statement that should have prevented it, it tried to convert the blank string of the session to a date. Certainly strange. It was as if the session had a value when reaching the if statement and then after it checked it against the criteria, it changed it to a blank string and threw the error.

    So it turns out it wasn’t really a session issue, just a strange date issue. It was only occuring with one person and one particular date from the table. I fixed it by simply putting a try-catch around it. Everything has been working fine for that individual since then. Thanks again for the help everyone!

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

Sidebar

Related Questions

In one of the answers to this question jalf spoke about useful define NOMINMAX
I'm new to Stack and this is my first question, but I did search
I know this has probably been spoken about before but I am in need
I have this html configuration: <div id=Header> <div id=Stamp> <img alt=Header Stamp src=images/About-Us.png />
This is a follow up to a question i asked at java disc based
So I have this code in python that writes some values to a Dictionary
This is about best practices in general, not specific for a single language, database
Okay, so I have a question. I use print <<< END followed by an
I'm very sure this problem has been solved, but I can't find any information
I have some (more) questions about calling CloseHandle. So, the SO citizens have spoken,

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.