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] Won't log out when browser is closed

Simple Membership Plugin › Forums › Simple Membership Plugin › Won't log out when browser is closed

Tagged: Log off

  • This topic has 6 replies, 4 voices, and was last updated 6 months ago by admin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • February 9, 2018 at 6:49 pm #13300
    larryvan
    Participant

    When I close the browser and re-open it, I’m still logged on. How do I get it to log off when the browser is closed?

    February 9, 2018 at 9:23 pm #13304
    The Assurer
    Moderator
    1. Which browser and platform are you using?
    2. When you close the browser, are you closing the browser window, or just the browser tab?

    Are you able to create a test account for us, so we can try and replicate this behavior? In addition to the test account credentials, please provide the URL of the site.

    February 20, 2018 at 5:19 pm #13432
    larryvan
    Participant

    1. Seems to happen in all browsers
    2. Closing browser

    Test:
    [dunkirkyachtclub.org/wp]
    Click on “Member Login”
    username: test
    p/w: testpassword

    When you close the browser and reopen you’re still logged in!

    February 20, 2018 at 6:26 pm #13434
    The Assurer
    Moderator

    On the login page:

    1. If the “Remember Me” box is checked, the login cookie used by the plugin is given an expiration date of 14 days and 12 hours.
       
    2. If the “Remember Me” box is not checked, the login cookie used by the plugin is given an expiration date of 3 days.
       
    3. If the member’s browser is configured to clear all cookies, when the browser is closed; the effect is as if the member is logged out, every time they close their browser; irregardless of whether or not the “Remember Me” box is checked.
       
    4. Otherwise, the 14.5 or 3 day cookie expirations will be in force.
       

    If you’d like to shorten or eliminate the 3 day minimum expiry, please see:
    https://simple-membership-plugin.com/paid-support-simple-membership-plugin/

    November 18, 2025 at 9:52 am #31751
    bobgarrett
    Participant

    But would it be better if the 14 day expiry time extended each time the user visited the site?

    November 19, 2025 at 12:26 am #31752
    The Assurer
    Moderator

    Everybody has different security needs. SWPM is open source. You are welcome to adjust the cookie expiration times as you see fit.

    November 19, 2025 at 11:23 pm #31756
    admin
    Keymaster

    @bobgarrett, The 14-day “remember me” period is fixed from the time of the initial login and does not automatically extend based on ongoing usage of the website. This means that even if the user accesses the site daily, they will need to log in again once the original 14-day period expires.

    There is no auto-refresh/extension of the login cookie just for logging in daily. This is a standard behavior of login cookies across all websites.

    You can customize the duration and make your “remember me” login cookie stay valid much longer than 14 days (for example, you can use a value of 30 days or even longer).

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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