Nikhil  Srivastava

Nikhil Srivastava

  • 1.5k
  • 97
  • 10.4k

Losing user cookies being redirected from payment gateway

Sep 28 2016 2:35 PM
I am using ASP.net MVC5 for my e-commerce project . I am not using any SSL . 
 I have also successfully integrated the payment gateway. The problem i am facing is that while i am posting data to the payment gateway it process the payment and send backs the response to our web application action method the user gets logged out i.e. User.idenity sets back to null .
 
I think it occurs beacuse of HTTP to HTTPS connection as every gateway uses https as a security. and after getting redirected to https it removes all the cookies and session data.
 
But I don't want to use https connection in order to retain the User login session . Please tell me how to retain my user signin state after it gets redirected back from payment gateway. 

Answers (5)