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

Auto log out on browser close

Simple Membership Plugin › Forums › Simple Membership Plugin › Auto log out on browser close

Tagged: log in, log out

  • This topic has 24 replies, 11 voices, and was last updated 9 years, 6 months ago by dimabuko.
Viewing 10 posts - 16 through 25 (of 25 total)
← 1 2
  • Author
    Posts
  • September 11, 2015 at 7:36 am #3024
    admin
    Keymaster

    The WP user shouldn’t automatically logout when the browser is closed.

    How about, you use the “Hide Adminbar” option from the simple membership plugin settings. That way it won’t show the wp admin toolbar at the top of the site. So the user only has to be concerned with the simple membership login and logout.

    December 8, 2015 at 3:46 pm #4403
    vest
    Participant

    Hi

    I do have the same issue.

    The “Hide Adminbar” does not help, because I do control the menu items because of the Login status.
    The login status does depend on the login in Simple Membership, but the view depends on the status from WP.
    So if my users does cloes the browser and open it again, the didn’t see the menu items but are still logged in.
    Thats a bit confuseing.

    Any other ideas?

    February 25, 2016 at 4:48 pm #5438
    thepixelmaker
    Participant

    Hi
    I have the same problem with logged user, but anyway is a GREAT PLUGIN. Thank you

    July 30, 2016 at 3:13 am #7631
    wpdeveloper
    Participant

    Still no solution on this? We need swpm to auto logout when the browser is closed without first logging out. Thanks.

    September 6, 2016 at 9:09 pm #8159
    Brandtify
    Participant

    Hi,

    I have the exact same issue as Mi have described.

    Problem: Simple membership user stays logged in forever until user press “logout”. We need simple membership plugin to auto logout, when the browser is closed without first logging out.

    Any update on setting the simple membership SEASON cookie to have some kind of expiration? This issue has been ongoing since April 24, 2015… Please help?

    September 17, 2016 at 9:06 pm #8347
    dimabuko
    Participant

    I have the same issue. Also I described this issue a few times but seems that the plugin developers have the own vision how it should work 🙁 But the plugin of course is great 🙂

    September 18, 2016 at 10:20 pm #8362
    echo
    Participant

    I found a solution for my project, although this may not work for everyone…

    I had to edit a plugin file, which means updates will likely overwrite my edits, so this is not ideal.
    What I did was make an edit to class.swpm-auth.php
    Look for lines 191 and 195, then change the $expire variable to a value of 0.

    Again, not ideal but for my project does the trick… Hopefully this will help others.

    September 19, 2016 at 10:46 am #8376
    dimabuko
    Participant

    Hi, echo!

    I am so glad that you post your solution! I am so happy, thank you so much.
    Don’t know how you figure it out, but it works for me 100% that I need.

    September 19, 2016 at 11:09 am #8377
    dimabuko
    Participant

    Also may be developers of plugin can comment this solution? May be there is some hidden problems?

    What I did was make an edit to class.swpm-auth.php
    Look for lines 191 and 195, then change the $expire variable to a value of 0.

    October 19, 2016 at 7:11 am #8614
    dimabuko
    Participant

    After few weeks of testing this solution:

    What I did was make an edit to class.swpm-auth.php
    Look for lines 191 and 195, then change the $expire variable to a value of 0.

    I found that it produces another problems when user is logged in by SMWP and logged out by WP at the same time. Clearing cache helps.

  • Author
    Posts
Viewing 10 posts - 16 through 25 (of 25 total)
← 1 2
  • 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