Title: Cookies causing login issues
Last modified: April 19, 2023

---

# Cookies causing login issues

 *  Resolved [ncapehorn](https://wordpress.org/support/users/ncapehorn/)
 * (@ncapehorn)
 * [3 years ago](https://wordpress.org/support/topic/cookies-causing-login-issues/)
 * Hi there.
 * We’re using UM to handle membership and logins, and WP Foro for the forum side
   of things. We sometimes have issues where it gets into a bit of a login loop.
   I had the below from the client:
 * “I can logout then log back in and WP thinks things are OK (I can add users etc)
   but if I try to access the forum on the site it says you must be logged in and
   also says I am logged in as myself. Logging out via the link in that screen or
   via the main link doesn’t reset that mess. I can’t get back to a state where 
   I can access the forum.”
   Similarly, if a user gets an email notification that
   they’ve been mentioned and they click that link, it tells them they’re signed
   in, but also says they need to log in to see the forum.It gets resolved when 
   looking in a different browser so it seems to be a cookies issue, but I wouldn’t
   know which ones to exclude from caching to solve it. Any ideas?If it helps, there
   is also a plugin on there to log people out after a certain length of time (currently
   2hrs).If it helps, the pages currently excluded from caching are:
 * path: ^/account/?
   path: ^/login/?path: ^/register/?path: ^/profile/?path: ^/password-
   reset/?path: ^/
 * Is there anything else we should be excluding to end the sign in loop?
   Cheers,
   Nick

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

 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [3 years ago](https://wordpress.org/support/topic/cookies-causing-login-issues/#post-16668826)
 * [@ncapehorn](https://wordpress.org/support/users/ncapehorn/)
 * > If it helps, there is also a plugin on there to log people out after a certain
   > length of time (currently 2hrs).
 * To start finding the source of your issue deactivate this plugin.
 *  Plugin Support [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * (@andrewshu)
 * [3 years ago](https://wordpress.org/support/topic/cookies-causing-login-issues/#post-16691210)
 * Hi [@ncapehorn](https://wordpress.org/support/users/ncapehorn/)
 * This thread has been inactive for a while so we’re going to go ahead and mark
   it Resolved.
 * Please feel free to re-open this thread if any other questions come up and we’d
   be happy to help. 🙂
 * Regards

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

The topic ‘Cookies causing login issues’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/cookies-causing-login-issues/#post-16691210)
 * Status: resolved