0

I am developing web pages that I need that won't be opened in more then one browser/browser tab. Only one tab in one browser for one client.

I know that it is possible in the modern web, because I see that websites like Netflix does that.

What is the required setup for this? Can this be done with bare django?

user3599803
  • 6,435
  • 17
  • 69
  • 130
  • Can be done using websockets whereby you can monitor currently opened connections. If more than one websocket is open, then you know that user has opened multiple tabs. – xyres Mar 29 '19 at 15:38
  • You can also try to devise a mechanism using browsers's localStorage. One posiible solution is, you can set current timestamp in an interval, and when opening a page, check that value in localStorage and possibly block it depending on the value in local storage – Ozgur Akcali Mar 29 '19 at 16:35
  • Using websockets, how the server know that two sockets are from the same machine? With IP address? If yes it is a problwm since multiple machines can be connected with the same IP – user3599803 Mar 30 '19 at 10:02

0 Answers0