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

#   Logout issue after purchase through my own payment plugin

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

5 years 7 months ago [\#330924](#330924) by [lirimimeri](/forum/user/60924-lirimimeri "View lirimimeri's Profile")  *[Logout issue after purchase through my own payment plugin](/forum/31-development/902203-logout-issue-after-purchase-through-my-own-payment-plugin#330924 "Hi,  I have developed a hikashop payment plugin, I noticed an issue, which I belive it is working fine in firefox. but in chrome I am having an issue (the issue may be in other browsers too, not tested yet in others).  In other words, in short, the problem shows if I follow these steps in chrome: 1. First make an order, in the payment gateway page cancel it. 2. Make an order, give wrong credentials in the card it sends me back as expected in the cancel / decline url. 3. Finally when I make an order and give correct card credentials and make a successfully purchase, it redirect me in the notify&#95;url, but Loged out.  Thanks.")* was created by *[lirimimeri](/forum/user/60924-lirimimeri "View lirimimeri's Profile")*

Hi,

I have developed a hikashop payment plugin, I noticed an issue, which I belive it is working fine in firefox. but in chrome I am having an issue (the issue may be in other browsers too, not tested yet in others).

In other words, in short, the problem shows if I follow these steps in chrome:
1. First make an order, in the payment gateway page cancel it.
2. Make an order, give wrong credentials in the card it sends me back as expected in the cancel / decline url.
3. Finally when I make an order and give correct card credentials and make a successfully purchase, it redirect me in the notify_url, but **Loged out**.

Thanks.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

5 years 7 months ago [\#330926](#330926) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Logout issue after purchase through my own payment plugin](/forum/31-development/902203-logout-issue-after-purchase-through-my-own-payment-plugin#330926 "Hi,  I have developed a hikashop payment plugin, I noticed an issue, which I belive it is working fine in firefox. but in chrome I am having an issue (the issue may be in other browsers too, not tested yet in others).  In other words, in short, the problem shows if I follow these steps in chrome: 1. First make an order, in the payment gateway page cancel it. 2. Make an order, give wrong credentials in the card it sends me back as expected in the cancel / decline url. 3. Finally when I make an order and give correct card credentials and make a successfully purchase, it redirect me in the notify&#95;url, but Loged out.  Thanks.")*

Hi,

To logout, you can either do it with PHP code calling the logout function of Joomla, or change the user session or remove the cookies on the browser.
So since it is linked to cookies which are stored and sent by the browser it's potentially possible that something on the browser side could result in is (an extension clearing the cookies for some reason for example).
But it could well be something else. For example, HikaShop Business has a "user group after purchase" setting in the products so that you can add a user group to a user after the purchase of a product. This can lead the system to logging out the user after the order is confirmed so that the user groups of the user are cleared. So nothing related to the browser, but it could happen if you had bought different products between each browser when doing your tests.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwMjIwMy1sb2dvdXQtaXNzdWUtYWZ0ZXItcHVyY2hhc2UtdGhyb3VnaC1teS1vd24tcGF5bWVudC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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.052 seconds

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