0 kord answered Jul 24 '21 00:00 role of the setcookie is to sending a cookie.basic syntax :: setcookie(string $name , string $value = "" , int $expires = 0 ); usage :: setcookie('cookie_name','cookievalue' ,time()+60 ); //set cookie value and expire it in 60 seconds. Edit Answer