diff --git a/application/helpers/SurveyRuntimeHelper.php b/application/helpers/SurveyRuntimeHelper.php index 79a8539f614..9039b8875b3 100644 --- a/application/helpers/SurveyRuntimeHelper.php +++ b/application/helpers/SurveyRuntimeHelper.php @@ -581,7 +581,7 @@ private function setArgs() //don't use cookies if tokens are being used if (!empty($this->aSurveyInfo['active']) && $this->aSurveyInfo['active'] == "Y") { global $tokensexist; - if ($this->aSurveyInfo['usecookie'] == "Y" && $tokensexist != 1) { + if ($this->aSurveyInfo['usecookie'] == "Y" && $tokensexist != 1 && $this->aMoveResult['finished'] == true ) { setcookie("LS_".$this->iSurveyid."_STATUS", "COMPLETE", time() + 31536000); //Cookie will expire in 365 days } }