Computer-Networks
August 30, 2024
Computer-Networks
August 30, 2024
Computer-Networks
August 30, 2024
Computer-Networks
August 30, 2024

Computer-Networks

Question 754
The function setcookie() is used to____
A
Enable or disable cookie support
B
Declare cookie variables
C
Store data in cookie variables
D
Clear data from cookie variables
Question 754 Explanation: 
→ The setcookie() function defines a cookie to be sent along with the rest of the HTTP headers.
→ A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user’s computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.
→ Syntax
→ setcookie(name,value,expire,path,domain,secure,httponly);
Correct Answer: C
Question 754 Explanation: 
→ The setcookie() function defines a cookie to be sent along with the rest of the HTTP headers.
→ A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user’s computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.
→ Syntax
→ setcookie(name,value,expire,path,domain,secure,httponly);

Leave a Reply

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