You want to make a cookie available only for the HTTP protocol. Which of the following setcookie() parameters would you use to accomplish this?
httponly
Correct:
httponly
Explanation: Answer option A is correct.
The httponly option can be used to make a cookie available only for the HTTP protocol.
Answer options D and C are incorrect. The secure option is used when the cookie can be transferred only via the HTTPS protocol; the expire=DATE option is used to set the expiry date of the cookie.
Answer option B is incorrect. None is not a valid setcookie() function parameter.