• Hi

    I would like to mention a solution that helped me solve a problem which involves the logout process with Ultimate Memeber.

    There are several forum posts that deal with this issue:

    I tried many of the suggested solutions, but it did not solve the problem.

    I narrowed it down to be a problem related to cookies.

    I tried this useful plugin but it also did not solve the problem:
    Logout Clear Cookies

    Others may have the same problem as I have, so here is how I solved it in my case.

    There is a method of changing the location of the wp-config.php file for security reasons. It’s about moving it to a private place. In order for this to work properly I had manually defined the cookie paths in the wp-config.php file.

    This is the code which I had added manually:

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

    After deactivating these definitions the logout process of Ultimate Memeber started to work normally.

    If you have for whatever reason cookie path definitions in your wp-config.php file, be it you having added it manually or some plugin, then you can check the values to see it everything is correct. If there is an error with these values then the logout of Ultimate Memeber seems to have problems removing all the necessary cookies. Thereby the user remains in a semi-authenticated login state and one has to remove the session cookies manually from the browser cache in order to log in anew.

    The standard user logout of WordPress, that is Admin user and so on, never had an issue with my manual modifications. The logout always worked correctly. Only the logout of Ultimate Memeber had problems with it.

    I still have to check if my changes have consequences for other plugins.

    I hope this may help others who experience the same problem.

  • The topic ‘Logout problem solved!’ is closed to new replies.