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

[Support request] Simultaneously logins for one "user"

Simple Membership Plugin › Forums › Simple Membership Plugin › Simultaneously logins for one "user"

Tagged: simultaneously logins

  • This topic has 10 replies, 2 voices, and was last updated 8 years ago by Jokke86.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • August 8, 2018 at 9:52 am #15144
    Jokke86
    Participant

    Hi guys,

    First of all: great plugin!
    But here is my problem (and a forum search learned me that this feature was ADDED, which is not good in my case)

    I use the plugin to protect restricted pages on a website, which can be viewed by whoever has the right login (website has 2 protected sections, “partner” and “investor)
    However, when someone is logged in as “partner” to view more info, another person can’t login with the “partner” login!

    This is a very crucial issue for me, since people all over the world need to have access to those 2 sections.

    Thanks in advance!!
    Best regards,
    Jonas

    August 8, 2018 at 10:32 pm #15150
    mbrsolution
    Moderator

    Hi,

    However, when someone is logged in as “partner” to view more info, another person can’t login with the “partner” login!

    Can you provide more information about the membership levels you have created? How have you protected the sections, “partner” and “investor”.

    Then can you carry out a test.

    You will need to add two different test members. Make sure Debug is enabled. Log in with the member that is allowed to view partner. Then on a different tab or browser log in with the other member that is allowed to view investor. Then check the log files and report back.

    Thank you

    August 10, 2018 at 10:25 am #15162
    Jokke86
    Participant

    Hi, well this is the problem:

    [08/08/2018 9:35 AM] – SUCCESS: Authentication request – Username: investor
    [08/08/2018 9:35 AM] – SUCCESS: Authentication successful for username: investor. Executing swpm_login action hook.
    [08/08/2018 9:35 AM] – SUCCESS: Trying wp_signon() with username: investor
    [08/08/2018 9:35 AM] – SUCCESS: wp_authenticate action. User with username: investor is already logged in.

    So only 1 person could log in as “investor” to view the restricted area. The same with “partner”.
    More people should be able to login at the same time with one login.

    Thanks for the help!

    August 11, 2018 at 1:17 am #15163
    mbrsolution
    Moderator

    Hi,

    [08/08/2018 9:35 AM] – SUCCESS: wp_authenticate action. User with username: investor is already logged in.

    This is telling me that the username investor is logged in already. If this is the case only one username with the unique name can log in at the same time. Or am I misunderstanding the log message?

    In your case your best option is to create to membership levels with the following names.

    partner
    investor

    Then assign each member to either membership level above that you want to give access too.

    Regards

    August 15, 2018 at 12:56 pm #15207
    Jokke86
    Participant

    Hi,

    But the problem is, there are no users.. People can just use the username/password combination to see the hidden content. But the two combinations (partner or investor) apply to anyone who want to see the content. And that’s where the problem is: when John wants to see the partner content, and he logs in, and Rick wants to do the same, Rick can’t login because John is already logged in..

    So I need a fix that simultaneously logins for ONE username are permitted.

    Thanks for the help!!
    Greetings,
    Jonas

    August 15, 2018 at 10:28 pm #15211
    mbrsolution
    Moderator

    Hi,

    when John wants to see the partner content, and he logs in, and Rick wants to do the same, Rick can’t login because John is already logged in.

    Let me explain how this plugin works. John who belongs to membership level partner logs in from computer A. Then at the same time using computer B in a different location, Rick who belongs to membership level investor logs in. This should not cause any issues, because John has a different username and password to Rick.

    Does the above make sense?

    Regards

    August 16, 2018 at 10:20 am #15215
    Jokke86
    Participant

    Yes, but again, i’m not using different users. I use the username/password combination merely for access to the hidden content.

    Rick, John & Tim should be able to view the partner info at the same time, each from their own computer, with only ONE login.

    This was possible before an update ( https://simple-membership-plugin.com/forums/topic/limit-username-to-one-login-at-a-time/ )

    I’m happy to pay for premium support if I can achieve that.

    Thanks!
    Jonas

    August 16, 2018 at 10:42 am #15216
    mbrsolution
    Moderator

    Hi, can you carry out a test. Can you deactivate all of your other plugins. Then carry out a test using two different browsers and log in with the same member. Let me know what happens. This test would be much better if you used two different computers.

    Regards

    August 16, 2018 at 11:51 am #15217
    Jokke86
    Participant

    Hi,

    I did what you asked, this is the log:

    [08/16/2018 11:49 AM] – SUCCESS: SwpmAuth::login()
    [08/16/2018 11:49 AM] – SUCCESS: Authentication request – Username: partner
    [08/16/2018 11:49 AM] – SUCCESS: Authentication successful for username: partner. Executing swpm_login action hook.
    [08/16/2018 11:49 AM] – SUCCESS: Trying wp_signon() with username: partner
    [08/16/2018 11:49 AM] – SUCCESS: wp_authenticate action. User with username: partneris already logged in.
    [08/16/2018 11:49 AM] – SUCCESS: Setting current WP user to: partner
    [08/16/2018 11:49 AM] – SUCCESS: Triggering swpm_after_login hook.

    But somehow I was able now to view the partner info on both computers (something which wasn’t last week), very strange, but so good so far!!

    August 16, 2018 at 12:04 pm #15219
    mbrsolution
    Moderator

    Hi,

    But somehow I was able now to view the partner info on both computers (something which wasn’t last week), very strange, but so good so far!!

    Is this because you disabled all other plugins? If it is, did you enabled back all the plugins again? And then did you carry out another test?

    August 16, 2018 at 1:51 pm #15220
    Jokke86
    Participant

    Ok it does it again, even with my plugins disabled.
    But now I see where the problem is:

    When I login on computer A with the partner username/pw everything works.

    When I then login on computer B with the partner username/pw, the redirection after login doesn’t work anymore! (It just redirects to the homepage, but when I manually enter the url.com/partner hidden section url, I can see it also on computer B.

    So once computer A is logged in, the “After Login Redirection Page” does not work anymore for that username/password on another computer..

    Any suggestions?

    Thanks again for the help!!

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