At the previous page I add all the data to the database. So at that point the session isn’t truly necessary unless the customer goes back to add more items. When Paypal replies via IPN, the customer notification email is sent based on the items in the db, not the session.
You’re right, I probably don’t need to destroy the session. Still, the mechanics of the thing are still pretty much the same. I need to unset the session vars. I was thinking maybe I could do some Ajax-y thing to make this work with the onclick.
Unless someone came up with a better idea.
As for Paypal Standard, redirecting to their site probably will lose some customers, but Paypal is well enough known by now that it probably won’t be many. I’m working on implementing Paypal Pro as an option, but my god that’s a bear. (What the hell were they thinking?) The fact is that my clients are usually small businesses and offering them the low-entry option with the capability to upgrade is important to them.
CrimsonDryad Web Design Services
Web Design, Custom Software Development