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

#   ACL after payment not working until user logs out

##

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

Less More

- Posts: 10
- Thank you received: 1
-
-

13 years 1 month ago [\#120981](#120981) by [nijale](/forum/user/25077-nijale "View nijale's Profile")  *[ACL after payment not working until user logs out](/forum/33-customers/861525-acl-after-payment-not-working-until-user-logs-out#120981 "My checkout flow is set up as cart, payment then login (registration). This works great. After payment through Authorize.net's payment form the user is redirected back to the site and they are already logged in.  I have Hikashop set up to add the user to the Paid Member group, which it does so now this user is in the groups Registered and Paid Member. The homepage after login has an access level of Registered but another area on the site is for Paid Members. When this user clicks on the area for Paid Members, they are given a 403 error page. I have verified the ACL for the page is set to Paid Member and made sure the user is in fact part of the Paid Member user group.  I have read the thread here:   www.hikashop.com/forum/4-how-to/85750-50...ror-on-register.html  But on my site the user is logged in when they are redirected back to the site from Authorize.net. So the user has to log out and then log back in to gain access to the area for Paid Members. According to the above thread, the user should have to log in after registration, which would be fine with me but it is not working this way.  I would like for either the user to have to log in after payment or when they are redirected back to the site after payment and they are logged in, then not have to log out then log back in to be able to access the Paid Members area.  Any help will be appreciated!  -- HikaShop version -- just upgraded to Business version yesterday -- Joomla version -- : 3.1.5")* was created by *[nijale](/forum/user/25077-nijale "View nijale's Profile")*

My checkout flow is set up as cart, payment then login (registration). This works great. After payment through Authorize.net's payment form the user is redirected back to the site and they are already logged in.

I have Hikashop set up to add the user to the Paid Member group, which it does so now this user is in the groups Registered and Paid Member. The homepage after login has an access level of Registered but another area on the site is for Paid Members. When this user clicks on the area for Paid Members, they are given a 403 error page. I have verified the ACL for the page is set to Paid Member and made sure the user is in fact part of the Paid Member user group.

I have read the thread here:
[ www.hikashop.com/forum/4-how-to/85750-50...ror-on-register.html](http://www.hikashop.com/forum/4-how-to/85750-500-view-not-found-error-on-register.html)

But on my site the user is logged in when they are redirected back to the site from Authorize.net. So the user has to log out and then log back in to gain access to the area for Paid Members. According to the above thread, the user should have to log in after registration, which would be fine with me but it is not working this way.

I would like for either the user to have to log in after payment or when they are redirected back to the site after payment and they are logged in, then not have to log out then log back in to be able to access the Paid Members area.

Any help will be appreciated!

-- HikaShop version -- just upgraded to Business version yesterday
-- Joomla version -- : 3.1.5

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

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

Less More

- Posts: 10
- Thank you received: 1
-
-

13 years 1 month ago -  13 years 1 month ago [\#121074](#121074) by [nijale](/forum/user/25077-nijale "View nijale's Profile")  Replied by *[nijale](/forum/user/25077-nijale "View nijale's Profile")* on topic *[ACL after payment not working until user logs out](/forum/33-customers/861525-acl-after-payment-not-working-until-user-logs-out#121074 "My checkout flow is set up as cart, payment then login (registration). This works great. After payment through Authorize.net's payment form the user is redirected back to the site and they are already logged in.  I have Hikashop set up to add the user to the Paid Member group, which it does so now this user is in the groups Registered and Paid Member. The homepage after login has an access level of Registered but another area on the site is for Paid Members. When this user clicks on the area for Paid Members, they are given a 403 error page. I have verified the ACL for the page is set to Paid Member and made sure the user is in fact part of the Paid Member user group.  I have read the thread here:   www.hikashop.com/forum/4-how-to/85750-50...ror-on-register.html  But on my site the user is logged in when they are redirected back to the site from Authorize.net. So the user has to log out and then log back in to gain access to the area for Paid Members. According to the above thread, the user should have to log in after registration, which would be fine with me but it is not working this way.  I would like for either the user to have to log in after payment or when they are redirected back to the site after payment and they are logged in, then not have to log out then log back in to be able to access the Paid Members area.  Any help will be appreciated!  -- HikaShop version -- just upgraded to Business version yesterday -- Joomla version -- : 3.1.5")*

I thought this was due to our Joomdle component but it is not.

When a user is registered through the checkout process I am seeing the behavior that I described above - when the user is redirected back to the site after payment they are logged in and they have to log out and then log back in to access the restricted content.

When a user registers with the Hikashop registration that is not part of the checkout process, then the user is prompted to log in after the registration.

How can I disable the auto login for the user during the checkout process?

Last edit: 13 years 1 month ago by [nijale](/forum/user/25077-nijale "View nijale's Profile").

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjE1MjUtYWNsLWFmdGVyLXBheW1lbnQtbm90LXdvcmtpbmctdW50aWwtdXNlci1sb2dzLW91dD90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

13 years 1 month ago [\#121269](#121269) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[ACL after payment not working until user logs out](/forum/33-customers/861525-acl-after-payment-not-working-until-user-logs-out#121269 "My checkout flow is set up as cart, payment then login (registration). This works great. After payment through Authorize.net's payment form the user is redirected back to the site and they are already logged in.  I have Hikashop set up to add the user to the Paid Member group, which it does so now this user is in the groups Registered and Paid Member. The homepage after login has an access level of Registered but another area on the site is for Paid Members. When this user clicks on the area for Paid Members, they are given a 403 error page. I have verified the ACL for the page is set to Paid Member and made sure the user is in fact part of the Paid Member user group.  I have read the thread here:   www.hikashop.com/forum/4-how-to/85750-50...ror-on-register.html  But on my site the user is logged in when they are redirected back to the site from Authorize.net. So the user has to log out and then log back in to gain access to the area for Paid Members. According to the above thread, the user should have to log in after registration, which would be fine with me but it is not working this way.  I would like for either the user to have to log in after payment or when they are redirected back to the site after payment and they are logged in, then not have to log out then log back in to be able to access the Paid Members area.  Any help will be appreciated!  -- HikaShop version -- just upgraded to Business version yesterday -- Joomla version -- : 3.1.5")*

Auto login is necessary for the checkout.

What you can do though is to logout the user after the checkout. You can do that by adding the code below at the beginning of the file "end" of the view "checkout" via the menu Display-&gt;Views: Code:

&lt;?php $this-&gt;after_end(); $app = JFactory::getApplication(); $app-&gt;logout( $this-&gt;order-&gt;customer-&gt;user_cms_id ); ?&gt;

The following user(s) said Thank You: [nijale](/forum/user/25077-nijale "View nijale's Profile")

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

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

Less More

- Posts: 10
- Thank you received: 1
-
-

13 years 1 month ago [\#121294](#121294) by [nijale](/forum/user/25077-nijale "View nijale's Profile")  Replied by *[nijale](/forum/user/25077-nijale "View nijale's Profile")* on topic *[ACL after payment not working until user logs out](/forum/33-customers/861525-acl-after-payment-not-working-until-user-logs-out#121294 "My checkout flow is set up as cart, payment then login (registration). This works great. After payment through Authorize.net's payment form the user is redirected back to the site and they are already logged in.  I have Hikashop set up to add the user to the Paid Member group, which it does so now this user is in the groups Registered and Paid Member. The homepage after login has an access level of Registered but another area on the site is for Paid Members. When this user clicks on the area for Paid Members, they are given a 403 error page. I have verified the ACL for the page is set to Paid Member and made sure the user is in fact part of the Paid Member user group.  I have read the thread here:   www.hikashop.com/forum/4-how-to/85750-50...ror-on-register.html  But on my site the user is logged in when they are redirected back to the site from Authorize.net. So the user has to log out and then log back in to gain access to the area for Paid Members. According to the above thread, the user should have to log in after registration, which would be fine with me but it is not working this way.  I would like for either the user to have to log in after payment or when they are redirected back to the site after payment and they are logged in, then not have to log out then log back in to be able to access the Paid Members area.  Any help will be appreciated!  -- HikaShop version -- just upgraded to Business version yesterday -- Joomla version -- : 3.1.5")*

Thank you! Works perfect now ![:)](/media/kunena/emoticons/8.png ":)")

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

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

Less More

- Posts: 10
- Thank you received: 1
-
-

13 years 1 month ago [\#124770](#124770) by [nijale](/forum/user/25077-nijale "View nijale's Profile")  Replied by *[nijale](/forum/user/25077-nijale "View nijale's Profile")* on topic *[ACL after payment not working until user logs out](/forum/33-customers/861525-acl-after-payment-not-working-until-user-logs-out#124770 "My checkout flow is set up as cart, payment then login (registration). This works great. After payment through Authorize.net's payment form the user is redirected back to the site and they are already logged in.  I have Hikashop set up to add the user to the Paid Member group, which it does so now this user is in the groups Registered and Paid Member. The homepage after login has an access level of Registered but another area on the site is for Paid Members. When this user clicks on the area for Paid Members, they are given a 403 error page. I have verified the ACL for the page is set to Paid Member and made sure the user is in fact part of the Paid Member user group.  I have read the thread here:   www.hikashop.com/forum/4-how-to/85750-50...ror-on-register.html  But on my site the user is logged in when they are redirected back to the site from Authorize.net. So the user has to log out and then log back in to gain access to the area for Paid Members. According to the above thread, the user should have to log in after registration, which would be fine with me but it is not working this way.  I would like for either the user to have to log in after payment or when they are redirected back to the site after payment and they are logged in, then not have to log out then log back in to be able to access the Paid Members area.  Any help will be appreciated!  -- HikaShop version -- just upgraded to Business version yesterday -- Joomla version -- : 3.1.5")*

Ok this is weird. This was working fine. But now it is not. I have the checkout set up as cart, payment, login (registration). When a user purchases the product, they are directed to the cart, payment and registration page fine but when they click on register, they are then taken to a blank page and not redirected to the Authorize.net.

I have not changed a thing except I added Akeeba subscriptions. I have since uninstalled Akeeba to see if that helped and it does not. When I take out the code to log out the user, the user is redirected to authorize.net to pay and then redirected back to the site, but the ACL does not work properly until the user logs out and then logs back in.

How can I get this to work properly with logging the user out after checkout so that after payment they need to log in?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#124880](#124880) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[ACL after payment not working until user logs out](/forum/33-customers/861525-acl-after-payment-not-working-until-user-logs-out#124880 "My checkout flow is set up as cart, payment then login (registration). This works great. After payment through Authorize.net's payment form the user is redirected back to the site and they are already logged in.  I have Hikashop set up to add the user to the Paid Member group, which it does so now this user is in the groups Registered and Paid Member. The homepage after login has an access level of Registered but another area on the site is for Paid Members. When this user clicks on the area for Paid Members, they are given a 403 error page. I have verified the ACL for the page is set to Paid Member and made sure the user is in fact part of the Paid Member user group.  I have read the thread here:   www.hikashop.com/forum/4-how-to/85750-50...ror-on-register.html  But on my site the user is logged in when they are redirected back to the site from Authorize.net. So the user has to log out and then log back in to gain access to the area for Paid Members. According to the above thread, the user should have to log in after registration, which would be fine with me but it is not working this way.  I would like for either the user to have to log in after payment or when they are redirected back to the site after payment and they are logged in, then not have to log out then log back in to be able to access the Paid Members area.  Any help will be appreciated!  -- HikaShop version -- just upgraded to Business version yesterday -- Joomla version -- : 3.1.5")*

Hi,

If you have a blank page, please check your PHP error log, it will show you the PHP error message and give us more information about the problem.
You can also change your Joomla configuration in order to force the display of PHP errors, by changing the error report level to maximum or development.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [nijale](/forum/user/25077-nijale "View nijale's Profile")

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

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

Less More

- Posts: 10
- Thank you received: 1
-
-

13 years 1 month ago [\#125106](#125106) by [nijale](/forum/user/25077-nijale "View nijale's Profile")  Replied by *[nijale](/forum/user/25077-nijale "View nijale's Profile")* on topic *[ACL after payment not working until user logs out](/forum/33-customers/861525-acl-after-payment-not-working-until-user-logs-out#125106 "My checkout flow is set up as cart, payment then login (registration). This works great. After payment through Authorize.net's payment form the user is redirected back to the site and they are already logged in.  I have Hikashop set up to add the user to the Paid Member group, which it does so now this user is in the groups Registered and Paid Member. The homepage after login has an access level of Registered but another area on the site is for Paid Members. When this user clicks on the area for Paid Members, they are given a 403 error page. I have verified the ACL for the page is set to Paid Member and made sure the user is in fact part of the Paid Member user group.  I have read the thread here:   www.hikashop.com/forum/4-how-to/85750-50...ror-on-register.html  But on my site the user is logged in when they are redirected back to the site from Authorize.net. So the user has to log out and then log back in to gain access to the area for Paid Members. According to the above thread, the user should have to log in after registration, which would be fine with me but it is not working this way.  I would like for either the user to have to log in after payment or when they are redirected back to the site after payment and they are logged in, then not have to log out then log back in to be able to access the Paid Members area.  Any help will be appreciated!  -- HikaShop version -- just upgraded to Business version yesterday -- Joomla version -- : 3.1.5")*

Thank you for pointing me in the right direction. Turns out this had to do with my Joomdle component. All working now.

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

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

[](#top)
