Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › eMember auto log-out over-riding menu navigation
- This topic has 2 replies, 2 voices, and was last updated 10 years, 6 months ago by John McMullen.
-
AuthorPosts
-
May 7, 2014 at 8:25 pm #10786John McMullenSpectator
Hi, I am using different registration forms for different levels of membership and all is fine in that each membership level sees only the content they are supposed to see.
If a member at Level 1 clicks on Level 2 content they see their log in details.
Equally if they go back to their own membership level they see their log in details, rather than the content they should see – so they have to log out and then log in.
This is a wee bit “ugly” so I have set the “auto-log out” time to 1 minute – so after that time they get the log in form rather than their details. I can live with this.
The “problem” is that the auto-log out seems to over-ride the menu. No matter what menu option they pick, they go back to the home page. BUT the correct menu choices work if they click on them BEFORE the auto-log out takes effect.
I have left the “redirect on log-out” option in the settings/pages menu blank. It seems the auto-log out is defaulting to the home page regardless. Is there an edit in the PHP file that will stop this?
Also I tried using your suggestion of [http://www.your-domain.com/?event=logout] but again that requires a specific page – rather than a user menu choice.
Thank you in anticipation.
May 8, 2014 at 2:44 am #62778adminKeymasterI am not sure what you mean by the following:
If a member at Level 1 clicks on Level 2 content they see their log in details.
A member should never have to logout. If someone has permission for level 1 then they can only see content that is for level 1. They can go to pages that are for level 2 but they won’t be able to see the actual content (it will give them a message like… “You do not have permission to view this content”).
As an example I will use our demo site here:
http://www.tipsandtricks-hq.com/eMember-demo/
You can log in as a free member or silver meember and depending on your level, you can access content. You should never have to logout.
May 21, 2014 at 7:22 pm #62779John McMullenSpectatorHello, apologies for the delay in replying. I managed to fix this myself by reducing the number of pages from 3 to 2 and using the “emember protected content” short code.
For each video I had a “main” page from which members could go to a login page or a register page. I reduced this to a login page (with the premium content protected by the short code above) and a register page. The registration page is for the specific level.
I appreciate that as i write this it does not make a lot of sense, but the point is I found the solution using the short code available. It has raised another question about ending the login when the session ends, but I’ll explore that elsewhere.
Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.