I made a joomla jquery ajax login combined with a component entry, but when a user is logged in and redirected through ajax to a URL, my Login button is still there and it is functional.
How can I check the status of the user and if the user is a guest, then display the logout link?
I’m not sure about joomla but when the user logs in you need to store a session variable or a cookie etc. that you can access and check if they are logged in and if they are then hide the login link and show the logout link and vice versa.