开发者

After login the logout link is not appearing

开发者 https://www.devze.com 2023-03-13 14:16 出处:网络
I made a joomla jquery ajax logincombined 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.

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, th开发者_如何学Goen 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号