- This topic has 4 replies, 3 voices, and was last updated 4 years, 3 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Cookie Expiration Problem
Hello,
I noticed a problem with the cookies when someone is logged-in
If I connect to an account on my website 2 cookies are related to my login : the cookie of this plugin and the cookie of WordPress.
If I don’t check the box “keep me logged” the cookie of wordpress expire at the end of the session while the cookie of Simple membership is deleted after 2 or 3 days.
I use some plugin that check the wordpress cookie to know if you are logged or not so they think I’m not logged-in while I am because the 2 cookies doesn’t have the same expiration.
If I check “keep me logged” the 2 cookies have the same expiration date.
Is it a bug ?
Thanks.
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
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.
Hi, I am happy to know you managed to solve your issue 🙂
Enjoy the plugin.
Thank you.
Hello. Please share this solution. I have the same problem.