I'm currently trying to build an online store, and am using sessions to
track a particular visit.
Once the purchase has been completed I want to destroy the session, and
remove the session cookie from the browser (this being particularly
important to avoid the same session id being reused if the user decides to
place a second order).
After the purchase is completed I have some PHP code,in a script called
completedtrx.php which contains
setcookie("PHPSESSID", '', time()-42000, '/');
and then goes on to echo a thankyou message. All works as a had hoped, when
all the scripts are ...