Correct deprecation warning on cookies

This commit is contained in:
Alex Tselegidis 2023-03-13 07:42:49 +01:00
parent e1a8de1652
commit 10ce6bbf11

View file

@ -139,9 +139,9 @@ abstract class CI_Session_driver implements SessionHandlerInterface {
*/
protected function _cookie_destroy()
{
return setcookie(
return @setcookie(
$this->_config['cookie_name'],
NULL,
'',
1,
$this->_config['cookie_path'],
$this->_config['cookie_domain'],