Menus Not Respecting Logged In/Out User Session
-
Hi Team,
I noticed my menus which were set with “Show to Logged In / Out Users” weren’t being respected… i.e. when I was logged out, I would follow the “Login” link, then log in successfully via the login page, however the menu would still show the “Login” link in the page.
If I browsed to other pages, it would occasionally change, so the Login menu item disappeared, and the “Logout” menu item was now visible. After disabling my plugins, I noticed the everything worked when I disabled “WP Fastest Plugin”, and after finding the exact same issue reported about 12 months ago on this thread, I realised it was a user session cookie issue.
https://www.ads-software.com/support/topic/member-logout-menu-still-displays-even-when-logged-out/
I can see that WP Fastest Cache plugin supports regex filtering, and I added an exclusion for “wp_logged_in_*” as recommended in other thread, however this did not resolve the issue.
When I check my cookie on the application, I see “wordpress_logged_in_1234567….” type cookie names, so I added an exclusion for this instead. It seems to be working fine.
I thought I’d still ask the question if the cookie name has changed since last thread, and this is the correct workaround to our issue.
Regards.
The page I need help with: [log in to see the link]
- The topic ‘Menus Not Respecting Logged In/Out User Session’ is closed to new replies.