How to check to see if logged in

  • Posts: 38
  • Thank you received: 0
13 years 2 months ago #24799

Is there a way to check to see if user is logged in? I want to display either login or logout in a custom menu. Thanks for your help.

Last edit: 13 years 2 months ago by mrdan.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #24800

In the joomla menu manager, when you edit a menu you can define what group can see it. So you will be able to display a menu or not based on whether the user is logged in or not.

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 0
13 years 2 months ago #24801

Excellent. Is there also a way to see if logged in in a PHP function?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #24804

Yes. Again, that's not related to HikaShop but joomla:
www.semicolon.co.za/php/check-if-user-is...in-joomla-1-5-x.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum