nerdexam
Zend

200-530 · Question #254

1 <?php 2 setcookie('name1', 'value1', time() + 606024, '/'); 3 setcookie('name1', 'value2'); 4 ?> The web browser is configured to accept all cookies. How many cookies will be set by this script?

The correct answer is C. 2. Zend 200-530 Exam

Web Features

Question

1 <?php 2 setcookie('name1', 'value1', time() + 60*60*24, '/'); 3 setcookie('name1', 'value2'); 4 ?> The web browser is configured to accept all cookies. How many cookies will be set by this script?

Options

  • A0
  • B1
  • C2
  • D3

How the community answered

(46 responses)
  • A
    9% (4)
  • B
    15% (7)
  • C
    72% (33)
  • D
    4% (2)

Explanation

Zend 200-530 Exam

Topics

#setcookie#cookie scope#HTTP cookies#path parameter

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice