merchant-frontend-examples

ZZZ: Inactive/Deprecated
Log | Files | Refs

commit 725e428b7b5dd73c57766a756180573692c99608
parent 07c2958778a3f0a2493cac25b6dcf3f712913b5b
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Fri, 16 Dec 2016 15:16:44 +0100

Explicitly destroy session after successful payment.

Diffstat:
Mphp/fulfillment.php | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/php/fulfillment.php b/php/fulfillment.php @@ -11,11 +11,10 @@ echo sprintf("<p>Thanks for your donation!</p> <br> <p>The transaction ID was: %s; use it to - <a href=\"backoffice.html\">track</a> your money.</p> - <small>Due to caching issue with some browsers, - it's recommended to manually clear the cache after - each run.</small>", + <a href=\"backoffice.html\">track</a> your money, + or make <a href=\"/\">another donation!</a></p>", $_SESSION['transaction_id']); + session_destroy(); return; }