Home >Backend Development >PHP Tutorial >Parameter description and usage of php setcookie function_PHP tutorial

Parameter description and usage of php setcookie function_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 10:32:10909browse

Parameter description of php setcookie function

Usage:

setcookie(name, value, expire, path, domain, secure)

Parameter Description
name required. Specifies the name of the cookie.
value required. Specifies the value of the cookie.
expire Optional. Specifies the validity period of the cookie.
path optional. Specifies the server path for cookies.
domain optional. Specifies the domain name for the cookie.
secure Optional. Specifies whether cookies are transmitted over a secure HTTPS connection.

setcookie("webURL","www.bc5u.com", time()+3600*24);

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/756681.htmlTechArticlephp setcookie function parameter description usage: setcookie(name,value,expire,path,domain,secure) parameter description name required. Specifies the name of the cookie. value required. Specify cookie value...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn