Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at E:\www\www.cgc.ac.in\app\Config\Events.php:32) in E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php:748 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', 'E:\\www\\www.cgc....', 748) #1 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php(748): setcookie('cgc_csrf_cookie', '2dac0b841834d3c...', Array) #2 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php(724): CodeIgniter\HTTP\Response->doSetCookie('cgc_csrf_cookie', '2dac0b841834d3c...', Array) #3 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php(704): CodeIgniter\HTTP\Response->dispatchCookies() #4 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php(445): CodeIgniter\HTTP\Response->sendCookies() #5 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\Debug\Exceptions.php(120): CodeIgniter\HTTP\Response->send() #6 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #7 {main} thrown in E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php on line 748 Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at E:\www\www.cgc.ac.in\app\Config\Events.php:32) in E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php:748 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', 'E:\\www\\www.cgc....', 748) #1 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php(748): setcookie('cgc_csrf_cookie', '2dac0b841834d3c...', Array) #2 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php(724): CodeIgniter\HTTP\Response->doSetCookie('cgc_csrf_cookie', '2dac0b841834d3c...', Array) #3 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php(704): CodeIgniter\HTTP\Response->dispatchCookies() #4 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php(445): CodeIgniter\HTTP\Response->sendCookies() #5 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\Debug\Exceptions.php(120): CodeIgniter\HTTP\Response->send() #6 E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\Debug\Exceptions.php(168): CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #7 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler() #8 {main} thrown in E:\www\www.cgc.ac.in\vendor\codeigniter4\framework\system\HTTP\ResponseTrait.php on line 748