Zend PHP 5.3 Certification Exam
Functions and Arrays
Object Oriented Programming
Data Format & Types
Strings and Patterns
Databases and SQL
Web Features 1
You want to make a cookie available only for the HTTP protocol. Which of the following setcookie() parameters would you use to accomplish this?
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.
© 2013 Zend PHP Certification Exam