Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Cookie Expiration Problem

Simple Membership Plugin › Forums › Simple Membership Plugin › Cookie Expiration Problem

  • This topic has 4 replies, 3 voices, and was last updated 4 years, 3 months ago by Aleksandar.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 27, 2021 at 12:43 pm #22898
    glorain
    Participant

    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.

    July 27, 2021 at 2:35 pm #22899
    glorain
    Participant

    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

    July 27, 2021 at 6:34 pm #22901
    glorain
    Participant

    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.

    July 28, 2021 at 1:45 am #22908
    mbrsolution
    Moderator

    Hi, I am happy to know you managed to solve your issue 🙂

    Enjoy the plugin.

    Thank you.

    August 25, 2022 at 4:21 pm #24315
    Aleksandar
    Participant

    Hello. Please share this solution. I have the same problem.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy