Simple Membership Plugin › Forums › Simple Membership Plugin › The logout link is not working
- This topic has 9 replies, 3 voices, and was last updated 7 years ago by
mbrsolution.
-
AuthorPosts
-
November 27, 2019 at 6:18 pm #19330
Dido
ParticipantHi,
I am trying to use the simple membership plugin on my website. It is a great plugin, however there is a rather frustrating issue that the logout functionality is not working properly.I’ve read all the similar topics and executed the steps in your Plugin/Themes troubleshoot, but the issue persists with disabled plugins and the default theme.
What I find strange is that my theme has a custom Login/Logout popup button in the menu (circled in red on the screenshot) and I am able to log out successfully from there, but not from the link of your plugin (circled in green).
<img src="https://imgur.com/1J6pBWx" alt="Screenshot" /> https://imgur.com/1J6pBWxThe link in the Logout button from your plugin is:
https://trading.systems/?swpm-logout=trueWhile the link in the Logout button of the theme is:
https://trading.systems/login/?action=logout&redirect_to=https%3A%2F%2Ftrading.systems%2F&_wpnonce=c1e96fc382I guess this means they are using different functions and there seems to be some issue with yours.
Could you please fix this?
November 27, 2019 at 7:53 pm #19332mbrsolution
ModeratorHi, thank you for contacting us.
Are you login in as an admin or a member? Are you login in via the WP admin area or the membership area?
Thank you
November 28, 2019 at 8:01 am #19337Dido
ParticipantHi,
This happens when I am logging in as member.
November 28, 2019 at 10:24 pm #19344mbrsolution
ModeratorHi,
I’ve read all the similar topics and executed the steps in your Plugin/Themes troubleshoot, but the issue persists with disabled plugins and the default theme.
I just finish carrying out a test in my dev site and it works for me. I can’t reproduce this issue. What PHP version is running in your server? Do you have the latest WordPress version installed? Are you using any type of caching system?
Regards
November 29, 2019 at 10:34 am #19346SJ
ParticipantHi Dido,
I had the same problem, and found your question. I think I’ve solved it, and might be able to help you too. I think the logout link needs to include the whole of the address you’re logging out from, not just the website itself. So the correct link for you should be:
https://trading.systems/****/?swpm-logout=true[Replace **** with the rest of the url for the page on which the link is located]HTH.
cheers,
Steve
November 29, 2019 at 10:42 am #19347SJ
ParticipantHm, hold on. It works in MS Edge (after I’d cleared cookies). But not in Google Chrome. Maybe someone else can shed some light. Many thanks, Steve
December 1, 2019 at 3:35 pm #19359Dido
ParticipantHi,
My PHP version is 7.1. Latest version of WordPress 5.3. I have a caching plugin, but the problem persists even if I turn it off.
My developer told me that it might be something connected with cookies. You can see the cookies here:
https://pasteboard.co/IJfFpkp.pngI can also confirm that the logout button is working fine on Edge.
December 1, 2019 at 10:49 pm #19365mbrsolution
Moderator@Dido,
My PHP version is 7.1. Latest version of WordPress 5.3. I have a caching plugin, but the problem persists even if I turn it off.
You should update your PHP version. Please check the following link https://secure.php.net/supported-versions.php to learn more.
Also make sure your server is not running any cache system. If your server is running a cache system, ask your host if they can add some exclusions to their cache system.
Let me know how you go.
Thank you
December 2, 2019 at 1:39 pm #19372Dido
ParticipantHi,
I updated my PHP version and double checked with my hosting provider for caching. Both solutions didn’t solve the issue. My hosting provider support told me that the issue is most probably related to the local cache of the browser. This made sense, as the issue is not present in Edge. I tried Cache killer for Chrome to force it clear the cache on every reload and it is working fine. Is there anything you could do on your side in this case to fix the browser behavior?
December 2, 2019 at 9:09 pm #19373mbrsolution
ModeratorHi, unfortunately there is not much we can do about managing browsers cache. The owner of the computer or laptop is responsible for deleting the browser cache and making sure the browser is up to date.
We have a feature in the Advanced Settings tab that might help you.
automatically-logout-members-browser-closure-force-member-logoutThere is a tool I use in my Windows laptop that I highly recommend CCleaner.
Let me know if you need more information or help.
Thank you
-
AuthorPosts
- You must be logged in to reply to this topic.