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

  • Home
  • SEARCH
  • 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 7731881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:35:28+00:00 2026-06-01T06:35:28+00:00

I have read about storing session state out-of-process but still in memory by configuring

  • 0

I have read about storing session state out-of-process but still in memory by configuring the web app to use a provider such as StateServer

I have a List<int> that contains accountIDs that I would like to be shared among all servers in a webfarm. The list is not session data relating to any particular account, it is a global list that I would like in memory (but probably out-of-process) so that it can be checked by each server in the farm for each request to see if it contains an accountID.

Can this data be shared in the same way that session state is shared? Please can you give details of how this should be done?

Is this a good solution? Will there be a performance hit of many servers trying to access the same list?

EDIT: extra into…

In my app user accounts have an _accountStatus which if set to suspended is used by the app to restrict what the user can do. The _accountStatus is persisted in a bespoke authentication ticket. The problem is users can stay signed in, they could sign in today, go away and comeback in a month and still be signed in. Meanwhile a site admin may have suspended their account, but because the _accountStatus is persisted in the authentication ticket it is now incorrect and the user still has access that they shouldn’t.

So when a user’s _accountStatus is changed by an admin, their _accountID is added to the list. Then on every request the list is checked. If the account is on the list then it must reload it’s _accountStatus from the database (which always has the correct value) and update the authentication ticket.

So yes maybe persisting the list in SQL Server is the best solution.

Another solution might be to store the _accountStatus not in the authentication ticket but in the session. When a new session is started it could be loaded. But now there is the problem of what if an admin decided to suspend an account during a user’s session. How can the applicaion access the session for that user and update the _accountStatus from outside of the HttpApplication? Or inbetween the user’s requests, if you see what I mean?

  • 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-01T06:35:29+00:00Added an answer on June 1, 2026 at 6:35 am

    There is nothing built-in for this.

    Concurrent write access to such a list would require locking for data consistency. Are writes common? I hope not because that would destroy performance.

    I recommend you keep that list in SQL Server. Maybe a text file on a file share is enough, too.

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

Sidebar

Related Questions

I have read many posts on Session-scoped data in MVC, but I am still
I have read about continuency parser and dependency parser. but confused which could be
I have read about session fixation and from what I understand it forces a
I have read about application object in android site but I couldn't understand. What
I have found many questions here about storing values in viewstate, but haven't found
I have read about a lot of people having problems with the browser not
I have read about LDAP on wikipedia and I kind of understand what it
I have read about the push technologies recently. Using it real-time data streaming is
I have read about dynamically loading your class files when needed in a function
I have read about the different types of reference. I understand how strong, soft

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.