Home > Backend Development > PHP Tutorial > Implement the SESSION function in PHP3 (attached, use of COOKIE function library: test_cookie.php3_PHP tutorial

Implement the SESSION function in PHP3 (attached, use of COOKIE function library: test_cookie.php3_PHP tutorial

WBOY
Release: 2016-07-13 16:54:32
Original
810 people have browsed it




Untitled


Set cookies anywhere on the webpage
if (!$show){
$username="liubing";
jssetcookie("username","liubing",1);
echo "";
echo "valid for 1 minute
" ;
echo " Try cookiee Did it work" ;
}
else{
echo "

The cookie username value read is: $username
";
echo "Validity period 1 minute. If you refresh this page after 1 minute, you will no longer be able to see it
" ;
" ;
}
?>



www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631762.htmlTechArticle?php require(cookie.inc.php3); ? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleUntitled/title /head body PSet cookie anywhere on the webpage ?php if (...
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