user logged out in custom files by system
When I use the bank gateway for payment, I need to create 2 custom files, one to send to the bank and one to return and control the payment information.
There is no problem in sending the information to the bank and it is done well, my problem is that after the successful payment, when the bank sends the information to the page I want, the user account of the person who was in the system is logged out and the error of not accessing This page gives.
My question is actually why is this happening and how can I prevent the user from logging out which is caused by the system.
I am using version 2023.