Fatal error: Uncaught TypeError: setcookie(): Argument #3 ($expires_or_options) must be of type array|int, DateTime given in /home/ykaminh/www/www/chapter12_ex_starts/ch12_ex1/index.php:69
Stack trace:
#0 /home/ykaminh/www/www/chapter12_ex_starts/ch12_ex1/index.php(69): setcookie('PHPSESSID', '', Object(DateTime), '/', '', false, false)
#1 {main}
thrown in /home/ykaminh/www/www/chapter12_ex_starts/ch12_ex1/index.php on line 69