diff --git a/src/Captcha/TextCaptcha.php b/src/Captcha/TextCaptcha.php index 1a27afeb9..b8c9d6b7b 100644 --- a/src/Captcha/TextCaptcha.php +++ b/src/Captcha/TextCaptcha.php @@ -34,7 +34,6 @@ class TextCaptcha implements CaptchaInterface */ public function __construct(array $settings) { - session_unset(); session_start(); $this->settings = $settings; @@ -48,6 +47,7 @@ class TextCaptcha implements CaptchaInterface */ public function get(): string { + $_SESSION['phrase'] = $this->captcha->getPhrase(); $this->captcha->build(); return "