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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:08:22+00:00 2026-05-12T10:08:22+00:00

I re-asked this question here because the people at ServerFault deemed that this is

  • 0

I re-asked this question here because the people at ServerFault deemed that this is the appropriate place to ask this.

I am trying to prevent people from multiple login into one single computer and use my application simultaneously. In other words I want to prevent it from running twice on the same computer, at the same time In any given time there shall be only one single user running my application.

There is a reason for me to set the license usage that strict; my app serves a very specialized and very niche market. Hence, each copy costs around tens of thousands. If such multiple remote login tech gains prominence I would be put out of business in no time.

This is because I want to stop them from buying one license, install it on a machine, and use certain remote desktop technologies to do multiple user login. I want to prevent them from violating the license agreement technologically, instead of law enforcement.

Is there anyway that I can do in my application for this? Or is multiple login simultaneously is simply not possible?

I would prefer a non-dongle solution. My application runs on Windows only.

Edit: To complicate the matter further, I allow simultaneous different version access ( my clients can install multiple version of the same software on one machine and fire them up at the same time). I just don’t allow simultaneous remote login.

  • 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-12T10:08:22+00:00Added an answer on May 12, 2026 at 10:08 am

    Let me clarify my standpoint a little. At least silky and I seem to be interpreting this in a different manner.

    From what I understand, you are trying to prevent multiple users (or more instances of the same user) from logging in on the machine at the same time. In this you assume that the sole purpose of the machine is to run your application, which will generally not be the case.

    Using silky’s approach (system-wide mutex) to prevent multiple instances from running on the same machine is acceptable. Personally, I’d want to make sure there is no valid use case for a single user running two instances of your application to accomplish a task, before taking this approach.

    See also this programmer’s pet peeve. Preventing multiple users from using the same machine falls into the same category 😉

    As for your multiple version problem: choose a unique name for your system-wide mutex for every (major?) version of your application.

    Basic example with a system-wide Mutex:

    static class Program
    {
        private static Mutex appMutex = new Mutex(false, "Global\\MyApp 1.0");
    
        [STAThread]
        static void Main()
        {
            if (!appMutex.WaitOne(0))
            {
                MessageBox.Show("Application is already running. Have a nice day.");
                return;
            }
    
            // ...
        }
    }
    

    The Global\ prefix makes the mutex shared over multiple terminal server sessions. Without it, it would only prevent a user from running two instances in the same session.

    You should test this approach on an account that has limited rights, as it might be possible that restricted accounts cannot create such a mutex at all.

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

Sidebar

Ask A Question

Stats

  • Questions 240k
  • Answers 240k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer By design, a control can only be updated by the… May 13, 2026 at 7:18 am
  • Editorial Team
    Editorial Team added an answer use the below code and try <pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode… May 13, 2026 at 7:18 am
  • Editorial Team
    Editorial Team added an answer int i = sizeof(foo)/sizeof(foo[0]); May 13, 2026 at 7:18 am

Related Questions

Consider a hypothetical method of an object that does stuff for you: public class
I am creating windows installer project using Visual Studio 2005. Is there an option
Kind of a random question... What I'm looking for is a way to express
I'm making a page which has some interaction provided by javascript. Just as an

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.