Home > Backend Development > PHP Tutorial > playstation certified php cookies create implementation code

playstation certified php cookies create implementation code

WBOY
Release: 2016-07-29 08:39:35
Original
1096 people have browsed it

Copy the code The code is as follows:


setcookie("username","zhuzhao",time()+10);//Set cookie to save for 5 seconds
?>


Copy the code The code is as follows:


if(isset($_COOKIE["username"]))
{
echo $_COOKIE["username"];
}
else
{
echo "Cookie not found";
}
?>

The above introduces the creation and implementation code of playstation certified php cookies, including the content of playstation certified. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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