1. CookiesSet a cookie – setcookie()Extract data from a cookie - $_COOKIE Augment user authentication script with a cookie 2. What are cookies?• Web…