+1 vote
in PHP by
Which of the following function is used to set cookie in PHP?

a) createcookie()

b) makecookie()

c) setcookie()

d) None of the above

1 Answer

0 votes
by

(c) setcookie()

Description: PHP cookie is a small piece of information that is stored at client browser. It is used to recognize the user. PHP setcookie() function is used to set cookie with HTTP response. Once the cookie is set, you can access it by the $_COOKIE superglobal variable.

Related questions

0 votes
asked Sep 21, 2023 in Dot Net by Robin
0 votes
asked Apr 12, 2023 in Servlet by rahuljain1
+1 vote
asked May 13, 2022 in PHP by john ganales
...