title: Ultimate member logout not working using WPML
body: <p>I'm using <code>Ultimate member</code> with <code>WPML</code> and logout not working and when click on logout it redirects to again login where there is not login form rather than its showing user as login.</p>
  
  <p>Scenario :</p>
  
  <p>1) Login from login page</p>
  
  <p>2) Logout from Logout page (Ultimate member built in logout page)</p>
  
  <p>-> Still its showing user as login when he/she redirects after click on Logout page</p>
  
  <p>Solutions Tried :</p>
  
  <p>1) Removed Cache plugin
  2) exclude Login and Logout page from cache using wp-rocket
  3) Tried this solution using this Link : <a href="https://wpml.org/forums/topic/wpml-ultimate-member-login-logout-redirection-url-for-both-languages-i-use/" rel="nofollow noreferrer">https://wpml.org/forums/topic/wpml-ultimate-member-login-logout-redirection-url-for-both-languages-i-use/</a></p>
  
  <p>to use config file in <code>wpml configuration text</code> (used below code) :</p>
  
  <pre><code>&lt;wpml-config&gt;
    &lt;admin-texts&gt;
      &lt;key name="um_cached_role_member"&gt;
        &lt;key name="login_redirect_url"/&gt;
        &lt;key name="logout_redirect_url"/&gt;
      &lt;/key&gt;
    &lt;/admin-texts&gt;
  &lt;/wpml-config&gt;
  </code></pre>
  
  <p>4) Tried this solution from this link : <a href="https://wpml.org/forums/topic/ultimate-member-logout-link-not-working-in-different-languages/" rel="nofollow noreferrer">https://wpml.org/forums/topic/ultimate-member-logout-link-not-working-in-different-languages/</a></p>
  
  <p>But in above <code>solution 4)</code> i don't know how to pass logout in <code>wpml text configuration</code> file</p>
  
  <p>------>
  <strong>Above issue is resolved but now the only issue is that any action i perform not work until i hard refresh (ctrl + shift + R).</strong></p>
  
  <p>Scenario of issue :</p>
  
  <p>I login then on topbar there is menu for profile and Logout but now when i click on logo it redirects to home page with topbar display me login which is wrong because as i login already it should be profile and logout button.</p>
  
  <p>But when i hard refresh (ctrl + shift + R) it works properly similarly when i walk to other page similar issue it doesn't work as expected till i hard refresh.</p>
  
  <p><strong>Plugin Used are : Ultimate member,WPML,WP-rocket</strong></p>