From 6db00c58bdd75e20ea58f6a1a5efe5f86ff4c2d7 Mon Sep 17 00:00:00 2001 From: Jamie Burchell Date: Fri, 4 Feb 2022 12:34:13 +0000 Subject: Fix passing NULL to setcookie value parameter Fixes Passing null to parameter #2 ($value) of type string is deprecated --- system/libraries/Session/Session_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Session/Session_driver.php') diff --git a/system/libraries/Session/Session_driver.php b/system/libraries/Session/Session_driver.php index b1b1b073e..ec4b76841 100644 --- a/system/libraries/Session/Session_driver.php +++ b/system/libraries/Session/Session_driver.php @@ -153,7 +153,7 @@ abstract class CI_Session_driver { return setcookie( $this->_config['cookie_name'], - NULL, + '', array( 'expires' => 1, 'path' => $this->_config['cookie_path'], -- cgit v1.2.3-24-g4f1b