Name, value, expire, patrh, httponly, domain, secure all of these are arguments of
Answers
Answered by
0
creates a cookie named "user" with the value "John Doe". The cookie will expire after 30 days (86400 * 30). The "/" means that the cookie is available in entire website (otherwise, select the directory you prefer).
We then retrieve the value of the cookie "user" (using the global variable $_COOKIE). We also use the isset() function to find out if the cookie is set:
We then retrieve the value of the cookie "user" (using the global variable $_COOKIE). We also use the isset() function to find out if the cookie is set:
Answered by
0
Answer:
The Name,value,expire,patrh, httponly, domain, secure all are the arguments of setcookie ( ) function
Explanation:
The PHP setcookie( ) function sends a cookie. It is a function which explains a cookie to be sent along with the rest of the Hypertext transfer protocol ( HTTP) headers.
A cookie is defined as a source used to identify a user.
it is a small file which is embed to the users computer.
The setcookie function must use or it must be appear before the <html> tag in any program or, site we use.
Its value is automatically URL encoded when sending the cookie and automatically decoded when receive any cookies.
Similar questions
History,
7 months ago
English,
7 months ago
Political Science,
1 year ago
Math,
1 year ago
Math,
1 year ago