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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:09:55+00:00 2026-05-24T05:09:55+00:00

Our application is using ASP.net MVC and we have a question on what happens

  • 0

Our application is using ASP.net MVC and we have a question on what happens in the below scenario.

We have a “button” which makes a payment and after making a payment we have a session variable which marks “PaymentSubmitted” to True. This session variable will be used to do different stuff based on it’s value.

Now I would like to have your inputs in deciding what happens if the user clicks on that “button” twice.

Will the second request (generated from second click of the finish button) wait till the first request is executed ? Or will the second request will move on without worrying much on where is the first request.

note: we refrain from using any client side scripting.

  • 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-24T05:09:55+00:00Added an answer on May 24, 2026 at 5:09 am

    I’m assuming the button click is a “submit” on a form.

    Once the button is clicked, a second request WILL get posted. Just imagine, you hit the refresh on your browser on any given page 20 times, those 20 requests are going to be sent to your web server and will be handled in the order that they are received.

    You should be able to check the session variable on the subsequent click if you’ve set it early enough – but this is definitly not safe.

    The better approach would be to use JavaScript or post to a different page so that the button is not able to be clicked again while taking payment.

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

Sidebar

Related Questions

Our ASP.NET MVC 3 application is running on Azure and using Blob as file
I am looking for a reporting platform for our asp.net application, which will allow
I have joined a team developing an ASP.NET MVC version 1 application. I run
We are developing an application in ASP.Net MVC 3 using jQuery UI Dialog. This
We are using AutoMapper extensively in our ASP.NET MVC web applications with the AutoMapViewResult
For past projects(the last few have been web using asp.net mvc) we created a
We are using msbuild to deploy an ASP.NET MVC application to a few different
We currently have developed an application using WCF. Our clients make connections to different
In our desktop application, we have implemented a simple search engine using an inverted
I'm working on a pretty standed ASP.NET MVC application. We've got the core logic

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.