From 95cef6a8e6d8bb2468b4b8d0d1388e31bf05650c Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 8 Mar 2025 20:03:38 +0300 Subject: [PATCH] Update TextCaptcha.php --- src/Captcha/TextCaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "