Simple Membership Plugin › Forums › Simple Membership Plugin › Auto log out on browser close
- This topic has 24 replies, 11 voices, and was last updated 9 years, 6 months ago by
dimabuko.
-
AuthorPosts
-
April 20, 2015 at 2:33 pm #1500
mi
ParticipantHello,
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 #1506mbrsolution
ModeratorHi 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 #1512nur
Participantplease take look at this post :
https://simple-membership-plugin.com/forums/topic/keeps-forcing-me-to-login/#post-1511April 21, 2015 at 6:33 am #1514mi
ParticipantThanks 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 #1548mi
ParticipantAnyone? π
April 22, 2015 at 11:34 am #1549mbrsolution
ModeratorHi is the member registered in both WordPress and Simple Membership plugin?
April 22, 2015 at 11:35 am #1550mi
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 #1551mbrsolution
ModeratorOkay, 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 #1560mbrsolution
Moderator@Mi, I did some testing in one of my websites.
- I logged in as a member
- I closed the browser tab and then open a new tab and the member was still logged in.
- I tested different areas of the site and the plugin was working well. I could not access areas that were blocked for this user.
- 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 #1564mi
ParticipantThanks 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 #1565mbrsolution
ModeratorHi 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 #1566mi
ParticipantThanks 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 inSO 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 #1590mbrsolution
ModeratorHi mi, thank you for the extensive information. The developers will look into your suggestion further.
Kind regards
April 27, 2015 at 10:59 am #1612mi
Participant@mbrsolutions
Great π This would be good feature π
September 10, 2015 at 10:04 pm #3013JoshJeff
ParticipantAny update on this yet? Iβm having the exact same issue as described above.
-
AuthorPosts
- You must be logged in to reply to this topic.