How to display session variables and clear them on the same page?
Hello,
I need to clear session variables after displaying them on the same page.
Example:
I have a form that allow a user to subscribe to a game.
He can pay using paypal.
When the paypal transaction is succesful the user is redirected to a success page.
I will display the user data and paypal results here.
No problem.
But then, when can I clear the session variables?
There is no trigger "on page exit".
Would moving the clear session code to the very bottom of the page help?
Sorry for my ignorance.
TIA
tony