Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › User levels and redirects after login suddenly not working
Tagged: $auth, cookies, login, member, membership
- This topic has 16 replies, 3 voices, and was last updated 13 years ago by admin.
-
AuthorPosts
-
October 4, 2011 at 10:55 pm #4480akeith2002Member
I recently updated to a new build after you fixed an issue for me and now I am suddenly finding some strange behavior going on. I have 3 levels of memberships setup (ids are 2,3,4) each has its own redirect after login.
I am using php to find the user level and serve up different menu content based on their level but every level coming back from my users is level 2 even thought I can clearly look in the member database and see that the user I am currently logged in as is level 3.
I have tried both ways to find the level id’s that you have on this page:
http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
I am also noticing that upon login the user stays on whatever page they are currently on versus the login redirect kicking in.
All of this was working before… I am baffled at how it has suddenly stopped working.
October 4, 2011 at 11:31 pm #37313akeith2002Memberok something weird is definitely going on here…
I placed <?php global $auth; print_r($auth); ?> above my login and it is saying a certain user is logged in even after i manually logout it continues to say this person is logged in which explains why no matter what user I sign in with it keeps going to level 2 because this user that it is stuck on is.
Any thoughts? This is crazy.
October 4, 2011 at 11:46 pm #37314akeith2002MemberBTW… I am not using a caching plugin.
October 4, 2011 at 11:48 pm #37315akeith2002MemberSeems if I do a WordPress logout it does not log out of both WordPress and eMember.. it used to work though… so I then log out of eMember manually thru the url but as soon as I refresh the page its back to the same member data again!!!
October 5, 2011 at 12:11 am #37316akeith2002MemberI just updated the plugin to the newest and the same thing is happening in safari and FF. seems the cookies are just not reseting. So odd.
No matter how many times I log out as soon as I remove the logout string and hit refresh the member data pops right back up again… and if i sign in with someone else it will not change the data… it just keeps the same person logged in.
October 5, 2011 at 12:22 am #37317adminKeymasterLooks like the cookie somehow got messed up. Can you clear all your cookies from the browser then check it out?
October 5, 2011 at 12:26 am #37318akeith2002Memberyes I have over and over again in attempts to figure out the issue. when i remove the cookies it works that first time but after that it goes back to the same issue.
October 5, 2011 at 12:27 am #37319akeith2002Membernot sure if you saw this but I added it on to my last comment after you responded:
No matter how many times I log out as soon as I remove the logout string and hit refresh the member data pops right back up again… and if i sign in with someone else it will not change the data… it just keeps the same person logged in.
October 5, 2011 at 12:38 am #37320akeith2002MemberIn order to get it to clear the current $auth data I need to delete both the e_m_bazooka and the PHPSESSID cookies. Clearing just one of them does not change a thing.
October 5, 2011 at 12:48 am #37321akeith2002MemberIt’s happening in safari, FF and chrome so it’s not a isolated incident in one cookie on one browser. (I only tested in those 3)
October 5, 2011 at 2:30 am #37322adminKeymasterPlease do the following
1. Deactivate and delete the currently installed version of the plugin(s).
2. Download a fresh build of the plugin(s) from here:
https://support.tipsandtricks-hq.com/update-request
3. Upload and activate this version of the plugin(s).
4. Create a test member account and share the login details of this member so we can jump on your site and test the logout.
5. Post a link to the eMember login page of your site
Please make sure you do not do any code modification after the update (we cannot troubleshoot a customized version of the plugin).
October 5, 2011 at 2:59 am #37323akeith2002MemberWho do I email the username/password to?
October 5, 2011 at 3:13 am #37324adminKeymasterYou can use the contact form here:
https://support.tipsandtricks-hq.com/contact
Mention this forum thread so we can reference the issue.
October 6, 2011 at 3:14 am #37325akeith2002MemberAll sent.
October 8, 2011 at 6:28 am #37326adminKeymasterYou seem to have customized the login form (the login form I see there is not the one the eMember creates). Just remember that when you make your customer login you need to use the following URL as your logout URL otherwise logout won’t work (replace your-domain with the actual domain name):
-
AuthorPosts
- You must be logged in to reply to this topic.