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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:10:32+00:00 2026-06-07T10:10:32+00:00

The project I am currently working on involves MS SQL Server and ASP.net Web

  • 0

The project I am currently working on involves MS SQL Server and ASP.net Web Services that use Session variables. Apparently this causes a client’s calls to execute in a sequential manner. I want to make sure that these methods execute asynchronously.

After doing some research it appears to me the choicest method is to persist the session state in the database using a table that tracks sessions ( using guids say ) and separate tables for each session.

Before I dive directly into this I need to know if I can gain the same sense of asynchronous operations for the web service if I configure SQL Server to store the session.

Can I ?

  • 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-07T10:10:36+00:00Added an answer on June 7, 2026 at 10:10 am

    Sorry to say that, but the only way to execute asynchronously your code and use session variables is to make your totally custom session solution – and I mean totally custom and disable the asp.net session entirely.

    Basic tips to make your session:

    1. You have one cookie connected with the users data
    2. The data is on one table on your database.
    3. You make custom fields on that table for each session and avoid Dictionary<> to keep them
    4. You work with Dirty read, last write wins
    5. You read and write only the session variables that you need each time (not all together)
    6. Each line have a time out date, and use like MS, a sheduler on SQL to delete old sessions.
    7. Load session on OnPreInit, save only what have change on OnUnload
    8. By entirely disable the session, you need to lock using Mutex code that now is work fine because the session is make synchronization with out notice it, but with out session lock maybe execute two times, like new inserting to database calls.

    relative:

    Web app blocked while processing another web app on sharing same session
    What perfmon counters are useful for identifying ASP.NET bottlenecks?
    Replacing ASP.Net's session entirely

    to answer and to this question if I configure SQL Server to store the session ? the session is still lock and block the rest request. If you have the session on SQL server or on other medium is not change the way of working, only the place of the saved data.

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

Sidebar

Related Questions

The ASP.NET web app project I'm currently working on is getting slower over time
I'm currently working on a Java web project (Spring) which involves heavy use of
I'm currently working on a web project that involves several assemblies, structured something like
I am currently working on a SharePoint project that needs to use the Lists
im currently working on a project that involves listing contacts with a photo and
I'm currently working on a project that involves moving a database of documents for
I'm currently working on a project which involves multiple clients connected to a server
I am currently working on a project that involves crawling certain websites. However sometimes
I am working on a large project that involves taking thousands (30,000+) static web
I'm working on a project that involves talking directly with Zebra printers. Currently, I

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.