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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:34:10+00:00 2026-05-22T03:34:10+00:00

Is using asmx service to update a session variable via ajax call a problem

  • 0

Is using asmx service to update a session variable via ajax call a problem when a lot of calls are made in succession?

I have a asmx (project is legacy ASP.NET with no WCF at the web application layer) webservice that updates a session variable. There is an ajax call that uses this method when a checkbox is clicked. It works unless you click the check boxes one after another (which could be done). The ajax call hangs (never finishes).

I’m thinking this has something to do with multiple requests trying to update the session variable, but I’m not sure. Anyone run into this and could lend some advice? Note: I know WCF would be a possible answer, but I wondering if there is a solution that won’t require changing the asmx service to WCF right now.

  • 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-22T03:34:11+00:00Added an answer on May 22, 2026 at 3:34 am

    Is using asmx service to update a session variable via ajax call a problem when a lot of calls are made in succession?

    Yes, as ASP.NET will queue and execute those requests sequentially and not in parallel because the session object is not thread safe. If multiple requests from the same session are sent to some ASP.NET handler and if this handler writes to the session it will simply queue those requests.

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

Sidebar

Related Questions

I am using UpdateListItems method (Lists.asmx web service) to update fields of an uploaded
I have developed a web service with the .asmx extension using C# and i
I'm building a traditional ASP.NET Web Service -- the style built using asmx. It's
I'm using IIS/asmx to support a Flash client. Some of my service layer data
I have a legacy service I'm looking to update to WCF and one of
I have always used the Scriptmanager to handle all AJAX calls, but I am
This is quite straight forward. I'm calling a web-service (.asmx, with session enabled) from
I have the following web service method (.ASMX file): [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat =
I'm using ajax in my website to call some information from a UserControl called
I have written an ASMX service that looks like thus; namespace AtomicService { [WebService(Namespace

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.