PrepAway - Latest Free Exam Questions & Answers

How many cookies will be set by this script?

A script residing at http://example.com/phpcert/cookies.php contains the following code:
<code>
1 <?php
2 setcookie(‘name1’, ‘value1’, time() + 60*60*24, ‘/’);
3 setcookie(‘name1’, ‘value2’);
4 ?>
</code>

The web browser is configured to accept all cookies. How many cookies will be set by this script?

PrepAway - Latest Free Exam Questions & Answers

A.
0

B.
1

C.
2

D.
3

One Comment on “How many cookies will be set by this script?


Leave a Reply

Your email address will not be published. Required fields are marked *