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 15 posts - 1 through 15 (of 25 total)
1 2 →
  • Author
    Posts
  • April 20, 2015 at 2:33 pm #1500
    mi
    Participant

    Hello,

    First of all thanks for amazing plugin!

    I have one problem. If i’m leaving my site as logged in user and closing browser window and then opening it again i’m getting “Logged in as” text (that text box with logged as in/account status… logout). However wordpress thinks that i’m not logged in, so i can’t use any “logged in user” features.

    Not sure if it is bug or not, but i can’t login again in this situation πŸ™‚ In this case i need to press “logout” in that box and when login again in order to access the content.

    Many thanks for any help

    April 20, 2015 at 10:50 pm #1506
    mbrsolution
    Moderator

    Hi do you have a cache plugin? If you do have you configured the cache plugin to work with your membership pages? If you don’t have a cache

    In regards to your comment

    logged in user” features.

    What logged in features are you referring too?

    Regards

    April 21, 2015 at 3:08 am #1512
    nur
    Participant

    please take look at this post :
    https://simple-membership-plugin.com/forums/topic/keeps-forcing-me-to-login/#post-1511

    April 21, 2015 at 6:33 am #1514
    mi
    Participant

    Thanks for replies πŸ™‚


    @mbrsolution
    : No i don’t have cache plugin. On some pages i’m using standart wp function <?php if ( is_user_logged_in() ) { … } ?> . However in this case if i’m closing browser window and opening it again it is logged out from wp, but still logged in to simple membership.


    @nur
    : Not sure how it is related to my problem πŸ™‚ i’m not using cache plugin and i’m not sure how “password change” part will solve my problem πŸ™‚

    April 22, 2015 at 11:18 am #1548
    mi
    Participant

    Anyone? πŸ™‚

    April 22, 2015 at 11:34 am #1549
    mbrsolution
    Moderator

    Hi is the member registered in both WordPress and Simple Membership plugin?

    April 22, 2015 at 11:35 am #1550
    mi
    Participant

    @mbrsolution
    It is registered automatically on wordpress when i registering user with Simple Membership plugin – so yes πŸ™‚

    April 22, 2015 at 11:45 am #1551
    mbrsolution
    Moderator

    Okay, you will have to carry on doing what you are doing for the time being. @nur will improve this feature as he mentioned above.

    I will also carry out some test on my testing platform to see if I can recreate what you mentioned above.

    Regards

    April 23, 2015 at 3:47 am #1560
    mbrsolution
    Moderator

    @Mi, I did some testing in one of my websites.

    1. I logged in as a member
    2. I closed the browser tab and then open a new tab and the member was still logged in.
    3. I tested different areas of the site and the plugin was working well. I could not access areas that were blocked for this user.
    4. I tested the members Profile page and it was working well. I logged out with out a problem.

    From my test above the plugin performed well for me. Did I miss a step in my test in regards to your first question above?

    April 23, 2015 at 9:33 am #1564
    mi
    Participant

    @mbrsolution

    Thanks for checking it. it’s is logged in as simple membership user, but does it logged in as Wp user? for me when i’m closing browser and opening it again that user is logged out from wp, but still logged in as simple membership user. That’s the problem πŸ™‚ What i want is to have logged in user both as wp and simple membership on browser open or both logged out πŸ™‚

    So in this case <?php if ( is_user_logged_in() ) { … } ?> doesn’t work as that user is logged out from wp, but logged in as simple membership user.

    April 23, 2015 at 12:55 pm #1565
    mbrsolution
    Moderator

    Hi the plugin is designed to be separate from WordPress. Another words those who register through Simple Membership plugin are only allowed to log in through the Simple Membership login page. You might like to make a future request for your feature to be added.

    Regards

    April 23, 2015 at 1:03 pm #1566
    mi
    Participant

    @mbrsolution

    Thanks for helping me to solve this issue πŸ™‚

    When you register on simple membership user appears in WP users list aswell. So when user logged in as simple membership he is also logged in as wordpress user. That’s cool and ok and I don’t need that they would work together, but the thing is:

    Wordpress user:
    1. Logged in, close browser
    2. Open browser – user logged out automatically.

    Simple membership user:
    1. Logged in, close browser
    2. Open browser – user STILL logged in

    SO basically here is my problem that simple membership user stays logged in forever until user press “logout” πŸ™‚ So when i’m opening my browser again i can’t use wp function “logged in” anymore with simple membership user, because wp logged out user automatically, but it’s still logged in as plugin user πŸ™‚

    The problem is:
    F.e. user logs in a library πŸ™‚ He forgot to log out and just closes browser. Next day some other reader opens my website and trying to log in, but he sees views/loggedin.php with that other user data πŸ™‚

    My temporary solution is:
    I have changed views/loggedin.php with text “Sorry someone forgot to logout. Please click Logout in order to continue. So it is workaround, however I don’t like this solution πŸ™‚

    I think the simple membership SEASON cookie at least needs to have some kind of expiration or something.

    April 24, 2015 at 2:08 am #1590
    mbrsolution
    Moderator

    Hi mi, thank you for the extensive information. The developers will look into your suggestion further.

    Kind regards

    April 27, 2015 at 10:59 am #1612
    mi
    Participant

    @mbrsolutions

    Great πŸ™‚ This would be good feature πŸ™‚

    September 10, 2015 at 10:04 pm #3013
    JoshJeff
    Participant

    Any update on this yet? I’m having the exact same issue as described above.

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