locked
how to block dublicate login RRS feed

  • Question

  • User-1674296013 posted

    hi;

    I did look the much article on the internet but I cant do a algoritm for this ,

    I am using Asp.net MVC and I want to block dublicate login ,I am try to explain as follow

    • user login
    • same user shouln't login

    if I missed some criteria you can add

    Sunday, May 16, 2021 3:46 PM

All replies

  • User-1545767719 posted

    What is your authentication system? If you use ASP.NET Identity it is not possible at least by default.

    Sunday, May 16, 2021 9:51 PM
  • User287926715 posted

    Hi alya14,

    You can record the logged-in user ID+SessionID when you log in. You can use Application, Cache, and the database to write a filter to determine whether the current user ID and SessionID match the server's record and the operation performed when it does not match. Release resources when the Session expires or exits the system.

    I hope this article can help you.

    Best Regards,

    ChaoDeng

    Monday, May 17, 2021 7:37 AM