Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hjortur17's avatar

Problem with session

I have a website that's stores a booking in the session and then the customer is redirect to another site to pay. And when the customer has finish paying I will match the session key in the browser and the session key from the another site (I send the session key as a reference to the another site) and create the booking.

The problem is that there is no problem creating bookings in laptop but some problems with it in mobile. Any ideas?

0 likes
3 replies
jlrdw's avatar

Stackoverflow has a bunch of stuff on this. For mobile you may need a write a mobile web app.

hjortur17's avatar

I this a lot withCredentials: true. Is it possible that on mobile the session is not stored while you go over on another site?

hjortur17's avatar
hjortur17
OP
Best Answer
Level 14

I stopped using session because of problem with it on mobile. Now I just have a steps column in my database to mark where the booking is in the process and then just update it after paying.

Please or to participate in this conversation.