Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » CheckOutHandler logout automatically Issue

CheckOutHandler logout automatically Issue

Jason Htin Lin Aung
Reply

Hi,

I am developing a payment integration. HTTP POST is the only method that payment gateway returns. We want to redirct to Error Page if the payment gateway returns fail status. We are Generating Print Template with Template.OutPut() method. But everytime template is generate, the system logout and login automatically and error page is not showing. When I test with GET method it works. Is the issue because of POST method ?


Replies

 
Nicolai Pedersen
Reply

Hi

You need to show some of your code and context if you want us to help out here... What do you render and how in your checkout handler? If you get back a post - are you sure it is not as a server to server callback?

 
Andrew Rushworth
Reply

Hi Jason,

Did you mange to figure out why it logs the user out?
DW9 rapido
I have multiple checkout handlers and for some reason only the one checkout handler is doing this.
If its a success then it is find, but when i render an error template it logs the user out and the cart is cleared. The other checkout handlers work fine and show the error template without the logging out and clearing of cart.
 

Thanks,

Andrew

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Same answer - we need to see the code. Probably exception occurs, you are touching sessions or cookies, writing many logfiles or something similar.

 

You must be logged in to post in the forum