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') 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 From 6846d26d7b8d7a05d98bf2020f9348beb63d97d7 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 11 Feb 2022 16:38:58 +0200 Subject: [ci skip] Merge pull request #6098 from totoprayogo1916/indent-whitespaces Minor indentation & whitespace corrections --- system/libraries/Session/drivers/Session_files_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Session') diff --git a/system/libraries/Session/drivers/Session_files_driver.php b/system/libraries/Session/drivers/Session_files_driver.php index 4b7b9878b..c912fc71d 100644 --- a/system/libraries/Session/drivers/Session_files_driver.php +++ b/system/libraries/Session/drivers/Session_files_driver.php @@ -35,7 +35,7 @@ * @link https://codeigniter.com * @since Version 3.0.0 * @filesource -*/ + */ defined('BASEPATH') OR exit('No direct script access allowed'); /** -- cgit v1.2.3-24-g4f1b