Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

User levels and redirects after login suddenly not working

by

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, 6 months ago by admin.
Viewing 15 posts - 1 through 15 (of 17 total)
1 2 →
  • Author
    Posts
  • October 4, 2011 at 10:55 pm #4480
    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.

    October 4, 2011 at 11:31 pm #37313
    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.

    October 4, 2011 at 11:46 pm #37314
    akeith2002
    Member

    BTW… I am not using a caching plugin.

    October 4, 2011 at 11:48 pm #37315
    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!!!

    October 5, 2011 at 12:11 am #37316
    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.

    October 5, 2011 at 12:22 am #37317
    admin
    Keymaster

    Looks 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 #37318
    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.

    October 5, 2011 at 12:27 am #37319
    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.

    October 5, 2011 at 12:38 am #37320
    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.

    October 5, 2011 at 12:48 am #37321
    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)

    October 5, 2011 at 2:30 am #37322
    admin
    Keymaster

    Please 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 #37323
    akeith2002
    Member

    Who do I email the username/password to?

    October 5, 2011 at 3:13 am #37324
    admin
    Keymaster

    You 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 #37325
    akeith2002
    Member

    All sent.

    October 8, 2011 at 6:28 am #37326
    admin
    Keymaster

    You 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):

    http://www.your-domain.com/?member_logout=1

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 17 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ