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
" ;
" ;
}
?>