Title: Login cookie with wrong path
Last modified: September 15, 2018

---

# Login cookie with wrong path

 *  Resolved [Jakub](https://wordpress.org/support/users/kaderavek/)
 * (@kaderavek)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/login-cookie-with-wrong-path/)
 * Hi, we use UM with on this site [https://stehzastehem.cz/](https://stehzastehem.cz/)
   
   After logged out, all pages are ok insead of login page [https://stehzastehem.cz/prihlasit/](https://stehzastehem.cz/prihlasit/)
   The problem is probably in cookie wordpress_logged_in_ because it has path to
   this page so its not cleared after log out. We have disable caching now. We have
   newest plugin and WordPress. Thanks for help
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flogin-cookie-with-wrong-path%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Ultimate Member Support](https://wordpress.org/support/users/ultimatemembersupport/)
 * (@ultimatemembersupport)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/login-cookie-with-wrong-path/#post-10695548)
 * Hi [@kaderavek](https://wordpress.org/support/users/kaderavek/),
 * What caching do you use?
    Do you have any server side caching e.g. Memcached,
   Varnish Cache, Cloud Flare etc.? Please exclude Ultimate member pages from the
   cache and see if it solves your issue.
 * Regards.
 *  Thread Starter [Jakub](https://wordpress.org/support/users/kaderavek/)
 * (@kaderavek)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/login-cookie-with-wrong-path/#post-10695599)
 * Hi [@ultimatemembersupport](https://wordpress.org/support/users/ultimatemembersupport/),
 * thanks for reply.
    No we don’t use now any caching in WP – we disable caching
   of html type pages in server too. As I said – it works everywhere instead of 
   log in page.
 * Regards
 *  Thread Starter [Jakub](https://wordpress.org/support/users/kaderavek/)
 * (@kaderavek)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/login-cookie-with-wrong-path/#post-10747869)
 * Hi,
 * I found solution – I add to my wp-cofig.php
    define(‘COOKIEPATH’, ‘/’);
 * Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Login cookie with wrong path’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jakub](https://wordpress.org/support/users/kaderavek/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/login-cookie-with-wrong-path/#post-10747869)
 * Status: resolved