Which of the following should be entered on line 5 to set a cookie that will expire in a week and contains the user's name, assuming the name is stored in $myName?

```
1. 2. define("NEW_TIME", 60 * 60 * 24);
3. $myName = $_POST['name'];
4. $myAge = $_POST['age'];
5.
6. ?>
7.
8. Cookies
9.
10.

Your name:


11.

Your age:


12.
```

a.
```
setcookie($myName, time() + NEW_TIME);
```

b.
```
setcookie("name", $myName, time() + NEW_TIME + 7);
```

c.
```
setcookie("name", time() + 7);
```

d.
```
setcookie($myName, name, time() + NEW_TIME + 7);
```


b.
```
setcookie("name", $myName, time() + NEW_TIME + 7);
```

Computer Science & Information Technology

You might also like to view...

How does the precedence of an overloaded operator compare with the precedence of the original operator?

What will be an ideal response?

Computer Science & Information Technology

Flow Layout method_________changes the alignment for the Flow Layout.

a. setLayout b. modifyAlignment c. setAlignment d. setAlign

Computer Science & Information Technology

Windows 8 has a search option charm

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ________ is located at the beginning of a report and includes information such as the report title and author

Fill in the blank(s) with correct word

Computer Science & Information Technology