Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eMember » WP eMember Troubleshooting

User levels and redirects after login suddenly not working

(17 posts) (3 voices)
  • Started 7 months ago by akeith2002
  • Latest reply from admin
  • Possible Solutions (Related Topics):
    1. How to add user profile link to compact login?
    2. eMebmer - the login form link "Forgot Password?" is not working?
    3. emember cant login user to wordpress site
    4. Users not being sent login details
    5. Neither Login nor Registration Page working

Tags:

  • $auth
  • cookies
  • login
  • member
  • membership
12Next »
  1. akeith2002
    Member

    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.

    Posted 7 months ago #
  2. akeith2002
    Member

    ok 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.

    Posted 7 months ago #
  3. akeith2002
    Member

    BTW... I am not using a caching plugin.

    Posted 7 months ago #
  4. akeith2002
    Member

    Seems 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!!!

    Posted 7 months ago #
  5. akeith2002
    Member

    I 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.

    Posted 7 months ago #
  6. admin
    Key Master

    Looks like the cookie somehow got messed up. Can you clear all your cookies from the browser then check it out?

    Posted 7 months ago #
  7. akeith2002
    Member

    yes 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.

    Posted 7 months ago #
  8. akeith2002
    Member

    not 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.

    Posted 7 months ago #
  9. akeith2002
    Member

    In 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.

    Posted 7 months ago #
  10. akeith2002
    Member

    It'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)

    Posted 7 months ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin