WordPress Membership Plugin
I found a solution by activate by default the “remember me” option with JS when someone is connecting. So both cookies have the same expiration.
I found this https://simple-membership-plugin.com/automatically-logout-members-browser-closure-force-member-logout/
It solve the problem but it create another problem because this time it’s the opposite. When a user check the “stay connected” he stay connected via the wordpress core cookie but not with the simple-membership cookie.
It should be great if this option to disconnect user after closing the browser do not apply if he has check “stay connected”.
Is this option exist ?
Thanks