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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:51:50+00:00 2026-05-22T21:51:50+00:00

I want to create a web page where users can initiate a process, this

  • 0

I want to create a web page where users can initiate a process, this process will take several minutes to complete.

My question is:
When the user clicks on a button, should I start the process on a different thread and send him to a different page? I don’t want the process to end in case he closes the window or the connection is lost.

Also how can I prevent other users from initiating this process.

I thought about putting a variable in the application state that indicates whether the process is currently running or not.

Thanks for your advices

  • 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-22T21:51:51+00:00Added an answer on May 22, 2026 at 9:51 pm

    You could spawn a thread that is going to do the work and periodically checks whether it should still continue with his work. For the work you generate a certain ID (that you may or not couple to the user for extra security) that will be used to distinguish the work job. On the redirected page you could use some javascript to tell the server that the user is still waiting for job with ID X. Should this time-out expire you can drop the work.

    1. Create your job with a specific ID
    2. Share somewhere a timeout variable accessible by both the server and the job-thread
    3. Redirect the user to the landing page, where you have javascript polling the server
      for the result
    4. Once the job completes you store the result with the id and on the next poll from
      the client you can pass the information to the client.

    Update: If you want only one person to activate the process then you could still use the still system if you want to keep a history of some kind. You would only need to change the landing page to always look at the latest process and prevent other from starting one if there is still a process running.

    Otherwise you could do the same as in the above system but use a single store point for the process results. If the store point consists a placeholder it indicates that the process already has been started and that no-one should start a new process. The display page could then poll against this store point for the info to show the users.

    In the event you want everyone to be able to see the current results while a new process is being executed use two locations to store the result, one to store the finished one and one to store the busy one.

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

Sidebar

Related Questions

I want to create a client side mail creator web page. I know the
What I want to do is to create a web page for every user
I am creating a login page for my web application. I want to create
I'm trying to create a mobile-friendly web page that will allow a user to
I want to create fixed status bar in by web form to display various
I want to test the web pages I create in all the modern versions
Goal I want to create a web app with a horizontal GUI bar that
I've created an web authentication app using c# & asp.net and want to bounce
I want create a drop shadow around the canvas component in flex. Technically speaking
I want to create a Java application bundle for Mac without using Mac. According

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.