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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:57:04+00:00 2026-05-26T04:57:04+00:00

In my web project, I am using Static List. So say suppose I have

  • 0

In my web project, I am using Static List. So say suppose I have 2 users (A, B) logged in to my website at the same time, then this List will store some information about A and as well as B. But say when I process B List’s records, A’s List’s are getting processed instead of B’s.

Can somebody point out the problem please?, also please suggest me some possible solution to avoid this problem.

I am using ASP.NET C# 3.5.

Thank you in advance 🙂

Edit:

Now I have changed the data type from Dictionary to List, but still the same problem…

  • 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-26T04:57:05+00:00Added an answer on May 26, 2026 at 4:57 am

    A static variable is one that is the same for all instances of a particular class. So this means your website uses the exact same dictionary for User A, B, C, D, etc. Essentially whichever user last writes to the dictionary is the one whose content you will see, regardless of which user is looking.

    As other’s have suggested, you can use Session variables. These are stored in the server’s memory, and are related to a specific browser ‘session’ (i.e. user).

    Personally, I prefer to use the ViewState as this is stored in the response to the browser, and returned to you whenever the page makes a postback. This means less memory usage on the server, the viewstate is not volatile across sessions (or subject to application resets like session). However this also means that whatever you are storing is sent across the wire, so you would never want to store things like credit card numbers, SSN’s, etc.

    It also means that if you’re storing a lot of very large objects, you’re going to have a very large response and postback (possibly slowing the cycle), so you have to be more careful about how and what you store.

    So that’s a few different options for you, you should do the research and decide which is best for your requirements.

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

Sidebar

Related Questions

I have recently created a web project in Java using eclipse. I have a
I have a web project in eclipse using glassfish. I have the following datasource
I have created a simple java web (Vaadin) application project using JPA and it
Say I have an application with the following structure. // ASP.NET MVC (Web Project)
I am trying to develop a .NET Web Project using NHibernate and Spring.NET, but
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
On my previous machine I had IIS6 installed and created a web project using
Almost every new Java-web-project is using a modern MVC-framework such as Struts or Spring
I am working on a web service project using gsoap. I am new to
I'm trying to start a new ASP.NET Web Application Project using Visual Studio 2008.

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.