How to maintain/access session variables after returning to webhook url?

783 Views Asked by At

we are implementing instamojo payment gateway in PHP. After the payment transaction is successful while returning to our return URL, we are losing existing session values. So how to maintain our session values from payment page.

1

There are 1 best solutions below

0
On

There's a really good chance that you're going across domains if you're following the proper session cookie rules. For instance, if you're at mysite.com and you even switch to sub.mysite.com you're cookies are lost. It's just the way it works. There are a lot of clever ways to handle this of course, but all of them are way out of scope from anything I would type in here. I would google search for Single Sign On, as a starting point. Good luck.