I'm using Ultimate member
with WPML
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.
Scenario :
1) Login from login page
2) Logout from Logout page (Ultimate member built in logout page)
-> Still its showing user as login when he/she redirects after click on Logout page
Solutions Tried :
1) Removed Cache plugin 2) exclude Login and Logout page from cache using wp-rocket 3) Tried this solution using this Link : https://wpml.org/forums/topic/wpml-ultimate-member-login-logout-redirection-url-for-both-languages-i-use/
to use config file in wpml configuration text
(used below code) :
<wpml-config>
<admin-texts>
<key name="um_cached_role_member">
<key name="login_redirect_url"/>
<key name="logout_redirect_url"/>
</key>
</admin-texts>
</wpml-config>
4) Tried this solution from this link : https://wpml.org/forums/topic/ultimate-member-logout-link-not-working-in-different-languages/
But in above solution 4)
i don't know how to pass logout in wpml text configuration
file
------> Above issue is resolved but now the only issue is that any action i perform not work until i hard refresh (ctrl + shift + R).
Scenario of issue :
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.
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.
Plugin Used are : Ultimate member,WPML,WP-rocket