Recent Problem - Losing Variables

Discussion in 'ASP.NET / ASP.NET Core' started by aspcoder, Sep 2, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. We have recently started experiencing a problem with our ASP application (since around 27 August)

    The problem is that we are occasionally losing our Session variables. On some occasions we are also losing variables in general (objects.) IIS is reporting that the variables are Null.

    The symptoms seem to imply that the server is recycling or we are running on a server farm and the session variables are getting lost when the application switches to a load balancing server.

    As mentioned, this has only started happening recently and no changes have been made to the application. Has anybody else started experiencing these types of errors?
     
  2. cms

    cms

    See my topic titled "Session Timeout Problem" which was created on the same day you created this one in the same forum. I wonder if we are having the same problem? Heck, last night I visited my site and some news items on the frontpage didn't come up. This is significant because the news items are held in memory in application variables so the database doesn't have to be accessed everytime someone goes to the home page of my website. I had to reset my website so the news items were loaded into memory.

    Then again, the site was awefully slow. Maybe the powers at be here were running some maintenance jobs in the background such as rebuilding table indexes in databases and such which caused the problems I had last night?

    I was hoping someone associated with this ASP would respond to my topic I created but they didn't. I'm about to submit a problem ticket.

    cms
     
  3. cms

    cms

    Hey ASPCoder,

    Did you ever figure out the problem? What you said below about the server recycling is correct and is causing the problem. After emailing techsupport for a similar problem, I was informed that this ASP uses Win2003 Server and each site is put in a seperate process. Each process is recycled every 10 minutes if there is no activity within that time period. I requested they up the time for recycle to 20 minutes for my site which is the same as my session timeout. This has solved the problem for me. If you are still having this problem, you might want to email tech support, explain what is happening, and ask them to up the recycle time for you as well. Hope this helps. Cya!


    cms
     
  4. Nice work cms!
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page