Paypal using ipn.
Hi . I have integrated paypal with ipn for users to make payment.
I m loosing $_SESSION['OrderID'] on success.php.
Sometime SESSION WORKS. Sometimes it doesn't work. Any idea why?
Hi . I have integrated paypal with ipn for users to make payment.
I m loosing $_SESSION['OrderID'] on success.php.
Sometime SESSION WORKS. Sometimes it doesn't work. Any idea why?
Session variables won't be available on ipn pages. The IPN page is posted to by the Paypal server, so it won't have any session variables from the user available. You need to use the values posted from paypal on the ipn page.
How do we loss the session variables once we go to paypal?
Session are stored on browser linked with website if i m not wrong.
Currently i m using values posted from paypal ipn itself. but after coming to success page i loss the session variable sometimes & not always.
The sessions should be available on the success page. The ipn page works differently since it is never actually loaded by your browser.
If you sometimes lose sessions it is probably because of inconsistencies with using www. or not in front of the url. If you start at www.domain.com and return to domain.com after payment, then it will have a different session.
The best solution is to force consistency with the .htaccess file. You can force it to always use one or the other (whichever it returns to after checkout should be used).
This page has quite a few options for htaccess redirects: https://gist.github.com/vielhuber/f2c6bdd1ed9024023fe4
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.