时间:2021-07-01 10:21:17 帮助过:2人阅读
在网页的任何地方设置cookie
if (!$show){
$username="liubing";
jssetcookie("username","liubing",1);
echo "
cookie username 被设置成 $username
";
echo "有效期1分钟
" ;
echo " 试一下cookiee 有没有起作用" ;
}
else{
echo "
读到的cookie username 值为: $username
";
echo "有效期1分钟,1分钟后再刷新本页面就会看不到了
" ;
" ;
}
?>
http://www.bkjia.com/PHPjc/631762.htmlwww.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 P在网页的任何地方设置cookie ?php if (...