In Magento 2.2.5, I am checking the customer is logged in or not in order to display the login link in case if he is not logged in. If he is logged In means I need to display the My Account link.
When I am trying to login, it is logging in correctly and when navigating to other page, In header menu it is showing the Login even after login.
Any solution for this.
Note: I have disabled page cache in backend.