Computer-Networks
August 30, 2024Computer-Networks
August 30, 2024Computer-Networks
|
Question 754
|
The function setcookie() is used to____
|
Enable or disable cookie support
|
|
|
Declare cookie variables
|
|
|
Store data in cookie variables
|
|
|
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);
→ 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);
→ 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);
