Forum Moderators: coopster
But I realise that the session_destroy overrides anything else, and doesn't only act on the onSubmit.
The secure payment pages are in HTML, so I can't put the session_destroy() there.
Any solutions anyone?!
You could go to a PHP script that unsets the session and then redirects to the payment page, but you would then need a way of getting any post data from one page to the next, which you can't be doing with pure html either really, so you must either not be passing post data at this point or you've got some CGI script running.
Tom