How to kick a user out of the site?

  • 0
    How can you do such a thing, for example, when you click on the button, throw the user out of the site. So to say clear url
    JavaScript Anonymous, Nov 29, 2020

  • 4 Answers
  • 0
    Show text box:

    Disable your ad blocker to continue using the site.

    Infa weaving. I was thrown from the site irrevocably.
    Madeline Middleton

  • 0
    if you want you to click on the "kick out user" button from the admin panel and kick out a specific user from the site. then the easiest way to do this is via websockets (I would recommend either socket.io, a simple one, just for such a thing), it is possible without any.



    from the admin panel you publish the event, for each user you catch the event by its id, for example for each user there will be its own event "user1" instead of 1 - user id.
    Anonymous

  • 0

  • 0
    button.onclick = () => {
    window.close()
    }
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!