Simple Membership Plugin › Forums › Simple Membership Plugin › About Login Control
- This topic has 11 replies, 3 voices, and was last updated 1 year, 3 months ago by
The Assurer.
-
AuthorPosts
-
November 13, 2024 at 2:58 pm #29077
ysdorange
ParticipantHello.
I have a question about the login control of “Simple Membership”.
When you log in with “Simple Membership”, I think two things are executed: login control as Simple Membership and login control as a WordPress account.
If you remain logged in for some time, you may be logged out as Simple Membership, but remain logged in as a WordPress account.1. Is there a way to align the login status of Simple Membership with the login status of WordPress to prevent this from happening?
2. Is there a way to get the login status of Simple Membership using PHP? The login status of WordPress can be obtained with “is_user_logged_in()”, but it would be nice if there was something similar.November 14, 2024 at 12:50 am #29082The Assurer
ModeratorExcept for the option to automatically log a WordPress User into a SWPM Member account; there is no other connection between the two accounts.
The login status of both accounts is controlled by independent login cookies. Invalidating or deleting the cookies is the only way a user or member gets logged out.
November 14, 2024 at 5:13 am #29085ysdorange
ParticipantThank you for your reply.
I understand that the only way to cancel the login status is to have the cookies deleted.
You said that “there is no other connection between the two accounts,” but I have an additional question.
First of all, am I correct in understanding that “when you log in to your SWPM member account, you are also logged in to your WP account at the same time”?
Depending on the option settings, is it possible to not be logged in to your WP account when you log in to your SWPM member account?
Does the “Force WP User Synchronization” setting have anything to do with this?
November 15, 2024 at 2:07 am #29091The Assurer
ModeratorFirst of all, am I correct in understanding that “when you log in to your SWPM member account, you are also logged in to your WP account at the same time”?
Yes, if the SWPM membership and WordPress user accounts are synchronized.
Depending on the option settings, is it possible to not be logged in to your WP account when you log in to your SWPM member account?
If there is no WordPress user account, with a matching EMAIL then no WordPress login will occur.
Does the “Force WP User Synchronization” setting have anything to do with this?
Yes. If there is a WordPress user account whose email address matches that of an SWPM member; logging into the SWPM account will automagically log the member into WordPress. That is why when SWPM members are created, they can’t use the same email as an existing WordPress user.
November 15, 2024 at 8:03 am #29094ysdorange
ParticipantThanks to your help, my understanding has deepened.
When a user registers as a member by using SWPM, I think that a SWPM member and a WP account are created at the same time, but is it possible to set it up so that only the SWPM member account is registered at this time?
If this were possible, I thought there would be fewer inconveniences with login control.
November 16, 2024 at 1:53 am #29097The Assurer
ModeratorIf you turn off account synchronization; WordPress user accounts will not be created when an SWPM member registers, AS LONG AS THE SWPM ACCOUNT EMAIL DOES NOT MATCH AN EXISTING WORDPRESS USER EMAIL.
November 16, 2024 at 2:26 pm #29108ysdorange
ParticipantOkay. Thank you a lot.
Where is the option to not register for a WP account when registering as a SWPM member? (Or an option to not sync WP and SWPM)
November 17, 2024 at 2:11 am #29117The Assurer
ModeratorUncheck the “Force WP User Synchronization” setting. HOWEVER, SWPM will prevent registrations whose email addresses match an existing WP User.
November 21, 2024 at 6:04 am #29144ysdorange
ParticipantOkay, thank you.
Finally, can you tell me if there is a time limit for a login session for SWPM members?
For WP accounts, the default login session is defined as 48 hours, and 10 days if you save your login state.
November 22, 2024 at 2:22 am #29146The Assurer
ModeratorPlease see my previous response to this question:
https://simple-membership-plugin.com/forums/topic/users-keep-getting-logged-out/#post-28582February 10, 2025 at 4:22 pm #29667Eric iStudio101
ParticipantHello
Where can I turn off account synchronization (wp users / members) ?
I would like no wp users are created by the login.
Thank you
E.February 11, 2025 at 12:08 am #29670The Assurer
ModeratorUndo this setting:
Simple Membership -> Settings -> Advanced Settings -> Create Member Accounts for New WP Users
-
AuthorPosts
- You must be logged in to reply to this topic.