From 757579523c92ceded3be674003ae2329cbca67a3 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 19 Oct 2017 22:33:18 +0200 Subject: [PATCH] Use constants from 'Delight\Cookie\Cookie' class for cookie prefixes --- src/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth.php b/src/Auth.php index f395ae1..45904de 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -28,7 +28,7 @@ final class Auth extends UserManager { const SESSION_FIELD_STATUS = 'auth_status'; const SESSION_FIELD_ROLES = 'auth_roles'; const SESSION_FIELD_REMEMBERED = 'auth_remembered'; - const COOKIE_PREFIXES = [ '__Secure-', '__Host-' ]; + const COOKIE_PREFIXES = [ Cookie::PREFIX_SECURE, Cookie::PREFIX_HOST ]; const COOKIE_CONTENT_SEPARATOR = '~'; /** @var boolean whether HTTPS (TLS/SSL) will be used (recommended) */