- This topic has 2 replies, 2 voices, and was last updated 8 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Be Logged Out when the Browser Tab is Closed
Hi, I know there’s a setting that will automatically log the visitor out when they close out their browser. But what about if they close the tab of my website but they don’t close out their browser? Can I set up this plugin to automatically log them out when they close the tab even if they don’t close their browser? If so, how can I do that?
Please review my response to a similar question, you asked.
https://simple-membership-plugin.com/forums/topic/is-there-a-way-to-see-logged-in-users/
As long as the (Firefox, Edge, Chrome) browser is still executing on your computer; the login cookie will always remain active. This even applies to multiple instances of the same browser… If I had 2 instances of Chrome running, each under a different profile and tab set, the login cookie would not clear (if I had “erase cookies on browser exit” set) until ALL browser instances are closed.
The ONLY way to achieve what you are seeking, is to have some kind of addon that will download a client-side script to the browser.
Yes, it would be make a good addon feature as there are websites that I do business with where I’m automatically logged out when I close out the browser tab. PayPal.com is one of those examples. Thanks for your response.