prevent-concurrent-logins icon indicating copy to clipboard operation
prevent-concurrent-logins copied to clipboard

Destroy old user sessions without a page reload

Open frankiejarrett opened this issue 9 years ago • 3 comments

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.

frankiejarrett avatar Apr 28 '16 14:04 frankiejarrett

+1. This is really needed feature. For example, you could watch a long video without page reloading for hours.

Ryu

kimryuhyun avatar Jan 09 '17 07:01 kimryuhyun

Yes, very important feature!

Kuzovlev-Sanya avatar Feb 25 '17 05:02 Kuzovlev-Sanya

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

TOTLD avatar Oct 11 '18 04:10 TOTLD