Home > Backend Development > PHP Tutorial > HTTP cookie support_PHP tutorial

HTTP cookie support_PHP tutorial

WBOY
Release: 2016-07-13 17:12:06
Original
854 people have browsed it

PHP obviously supports HTTP cookies. A cookie is a structure that stores data on a remote browser and tracks or identifies returning users. You can use the function setcookie() to set cookies. Cookies are part of the HTTP header, so the SetCookie() function must be called before any output is sent to the browser. This situation is similar to the limitations of the function Header().
Any cookie sent to you from the client's computer will be automatically converted into a PHP variable similar to the GET and POST method data. If you want to assign multiple values ​​to a cookie, just add "[ ]" after the cookie name. Please see the setcookie() function for more details.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629504.htmlTechArticlePHP obviously supports HTTP cookies. A cookie is a structure that stores data on a remote browser and tracks or identifies returning users. You can use the function setcookie() to set cookies. ...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template