From dc9f5653e3494133434dd3374e6d1667944ca5a4 Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Tue, 11 May 2004 12:34:29 +0000 Subject: [PATCH] If submit of survey fails, and an email is sent, the session is now destroyed. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1026 b72ed6b6-b9f8-46b5-92b4-906544132732 --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index 611f24a8ceb..2e307e6e778 100644 --- a/index.php +++ b/index.php @@ -818,6 +818,9 @@ function submitfailed() . mysql_error()."\n\n"; $email=crlf_lineendings($email); mail($thissurvey['adminemail'], _DNSAVEEMAIL5, $email); + //An email has been sent, so we can kill off this session. + session_unset(); + session_destroy(); } else {