开发者

After login the logout link is not appearing

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜