prevent-concurrent-logins
prevent-concurrent-logins copied to clipboard
Destroy old user sessions without a page reload
This suggestion was brought up in the forums for membership sites where page reloads may not be performed very often.
This could be achieved by polling the page with JavaScript, an easy thing to with the Heartbeat API. When an old user session is detected the user could be immediately logged out.
Additionally, a filter could be exposed to redirect the user to the URL of your choosing (such as the homepage), rather than destroying the session and always being sent to the login screen.
There are performance considerations to take if a feature like this were to be added, however, the plugin could simply gracefully degrade and require a page reload if the Heartbeat API is disabled - which you should be doing anyway if performance is a concern for you.
+1. This is really needed feature. For example, you could watch a long video without page reloading for hours.
Ryu
Yes, very important feature!
Hey Frankie,
I presume this is not resolved or added?
I'm looking for this exact solution - my membership site shows video lessons which means a user could log in, load up their video lesson and then not leave that page while a huge number of new users use the same credentials to do the same thing. Not ideal.
Thanks! Tom