Search code examples
c#asp.net

Creating Multiple Users


I have made a sales management website in ASP.NET. It works perfectly fine for one person who logs in and uses the site.

How can I open multiple google chrome tabs for my asp.net web site and different user's can use the site at the same time or in other words. Multiple staff can be created that later on login and participate in sale who are probably at different counters.


Solution

  • I actually asked a very similar question on C# chat a while back. Travis J suggested something similar to the following:

    var authStore = new AuthenticationStore();
    
    foreach(var user in users)
    {
        if(UserAuthentication.Verify(user))
        {
            authStore.Add(user);
            // store auth token in session or similar
        }
    }