Index: index.php =================================================================== --- index.php (revision 9887) +++ index.php (working copy) @@ -665,6 +665,7 @@ $tokendata = $tkresult->FetchRow(); if ($tkresult->RecordCount()==0 || $areTokensUsed) { + killSession(); sendcacheheaders(); doHeader(); //TOKEN DOESN'T EXIST OR HAS ALREADY BEEN USED. EXPLAIN PROBLEM AND EXIT @@ -677,7 +678,7 @@ ." (" ."{$thissurvey['adminemail']})

 \n"; echo templatereplace(file_get_contents("$thistpl/endpage.pstpl")); - killSession(); + doFooter(); exit; }