Skip to content
loading...

re: Prevent Multiple Sessions for a User in your Django Application VIEW POST

TOP OF THREAD FULL DISCUSSION
re: this one works for me: class OneSessionPerUserMiddleware: # Called only once when the web server starts def init(self, get_response): ...
 

class OneSessionPerUserMiddleware:

Called only once when the web server starts

def init(self, get_response):
self.get_response = get_response

How do you implement this code? Could you spell out where this code should reside? Which directories, files etc ...?

code of conduct - report abuse