Question

I'm currently building a webshop. When the customer pays he is redirected to a payment portal off site. The user connects to this payment portal via an https url. After the payment is succesfull, the user gets redirected to my webshop.

Before the user leaves my website to go to the portal, he has some sessions active. I'd like to use some information in these sessions when the user returns to my page. When trying to retrieve these sessions, I found that they no longer existed.

I thought sessions would persist untill the user closes the browser? Does going from an http connection to an https connection destroy the current sessions?

Was it helpful?

Solution

You can find an explanation here

Session lost when switching from HTTP to HTTPS in PHP

Hope this helps you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top