How to check to see if logged in

  • Posts: 38
  • Thank you received: 0
14 years 1 week 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: 14 years 1 week ago by mrdan.

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
14 years 1 week 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
14 years 1 week 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: 84304
  • Thank you received: 13698
  • MODERATOR
14 years 1 week 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.056 seconds
Powered by Kunena Forum