[Skip to main content](#vessel-content)

#   How to add 'Logout' button into Hikashop starter?

##

- **[ggbnet](/forum/user/33870-ggbnet "View ggbnet's Profile")**
- [![ggbnet's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33870-ggbnet "View ggbnet's Profile") Topic Author
- [ Offline](/forum/user/33870-ggbnet)

Less More

- Posts: 6
- Thank you received: 0
-
-

12 years 2 months ago [\#168444](#168444) by [ggbnet](/forum/user/33870-ggbnet "View ggbnet's Profile")  *[How to add 'Logout' button into Hikashop starter?](/forum/33-customers/870536-how-to-add-logout-button-into-hikashop-starter#168444 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : chrome newest version  I use the hikashop starter. i found that when the user login the websites, there is not 'Log out' button so that they can leave their session and stop buying something. I read some solutions online.  First one, i add a new menu item called &quot;Logout&quot; and it is a external link with the parameter of 'index.php?option=com&#95;user&amp;task=logout'. however, it doesn't work and the user is still keeping online.  Second one, I add a custom html and put it under the menu, and its name is also 'Logout' and edit it into a link with the same parameter but 404 error happened when click it.  I do not how to add 'Logout' button into Hikashop system and I just put it somewhere so that it can let the user log out (destroy their session). If you know that, please give me some detailed steps. THANK YOU")* was created by *[ggbnet](/forum/user/33870-ggbnet "View ggbnet's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : chrome newest version

I use the hikashop starter. i found that when the user login the websites, there is not 'Log out' button so that they can leave their session and stop buying something. I read some solutions online.

First one, i add a new menu item called "Logout" and it is a external link with the parameter of 'index.php?option=com_user&amp;task=logout'. however, it doesn't work and the user is still keeping online.

Second one, I add a custom html and put it under the menu, and its name is also 'Logout' and edit it into a link with the same parameter but 404 error happened when click it.

I do not how to add 'Logout' button into Hikashop system and I just put it somewhere so that it can let the user log out (destroy their session). If you know that, please give me some detailed steps. THANK YOU

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA1MzYtaG93LXRvLWFkZC1sb2dvdXQtYnV0dG9uLWludG8taGlrYXNob3Atc3RhcnRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 months ago [\#168445](#168445) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to add 'Logout' button into Hikashop starter?](/forum/33-customers/870536-how-to-add-logout-button-into-hikashop-starter#168445 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : chrome newest version  I use the hikashop starter. i found that when the user login the websites, there is not 'Log out' button so that they can leave their session and stop buying something. I read some solutions online.  First one, i add a new menu item called &quot;Logout&quot; and it is a external link with the parameter of 'index.php?option=com&#95;user&amp;task=logout'. however, it doesn't work and the user is still keeping online.  Second one, I add a custom html and put it under the menu, and its name is also 'Logout' and edit it into a link with the same parameter but 404 error happened when click it.  I do not how to add 'Logout' button into Hikashop system and I just put it somewhere so that it can let the user log out (destroy their session). If you know that, please give me some detailed steps. THANK YOU")*

Hi,

The logout is a Joomla issue, not really related on HikaShop.
What can be done is create a login Joomla module, adn restrict it to only registered customers group, this way it will only display a logout button.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA1MzYtaG93LXRvLWFkZC1sb2dvdXQtYnV0dG9uLWludG8taGlrYXNob3Atc3RhcnRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ggbnet](/forum/user/33870-ggbnet "View ggbnet's Profile")**
- [![ggbnet's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33870-ggbnet "View ggbnet's Profile") Topic Author
- [ Offline](/forum/user/33870-ggbnet)

Less More

- Posts: 6
- Thank you received: 0
-
-

12 years 2 months ago [\#168592](#168592) by [ggbnet](/forum/user/33870-ggbnet "View ggbnet's Profile")  Replied by *[ggbnet](/forum/user/33870-ggbnet "View ggbnet's Profile")* on topic *[How to add 'Logout' button into Hikashop starter?](/forum/33-customers/870536-how-to-add-logout-button-into-hikashop-starter#168592 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : chrome newest version  I use the hikashop starter. i found that when the user login the websites, there is not 'Log out' button so that they can leave their session and stop buying something. I read some solutions online.  First one, i add a new menu item called &quot;Logout&quot; and it is a external link with the parameter of 'index.php?option=com&#95;user&amp;task=logout'. however, it doesn't work and the user is still keeping online.  Second one, I add a custom html and put it under the menu, and its name is also 'Logout' and edit it into a link with the same parameter but 404 error happened when click it.  I do not how to add 'Logout' button into Hikashop system and I just put it somewhere so that it can let the user log out (destroy their session). If you know that, please give me some detailed steps. THANK YOU")*

Thank you. I solve it according to your method.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA1MzYtaG93LXRvLWFkZC1sb2dvdXQtYnV0dG9uLWludG8taGlrYXNob3Atc3RhcnRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.257 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
