September 2001
Intermediate to advanced
768 pages
32h 45m
English
void setcookie(string name, string value, [int expiration], [string path], [string domain], [int secure])
| name | Cookie name |
| value | Value of cookie |
| expiration | Expiration time |
| path | Server path |
| domain | Domain name |
| secure | Secure option |
Sends an HTTP cookie to the client.
Returns:
Void
Description:
Sends an HTTP cookie to the client. Cookies are variables in key/value pairs sent by the server to the client, and are typically stored as text files. They also contain extra compulsory attributes as well as other optional attributes.
Cookies are a useful way to maintain information between browser sessions. The cookie is written to the client and retrieved by the server from the client on subsequent accesses to pages that match the specified ...
Read now
Unlock full access