I've got a navigation bar that displays different links for logged in users using {% if currentUser %}. However, when clicking through links, sometimes it won't pick up that someone is logged in.
The same issue crops up occasionally with "denied permissions" error pages. Again, reloading the page will pick up the user session and display the template normally.
It's inconsistent which pages (and servers) it happens on. I'm not using any {% cache %} tags in the twig templates either.
Is there a cp setting or config/general.php option I'm missing?
Edit: Looks like the autogenerated appId based on filepath must have been the issue.