<?php if (!isset($_COOKIE['your_name_for_cookie'])) { ?>
<p>I will only be shown once and will last for a year until you delete your browser cookies.</p>
<?php setcookie('your_name_for_cookie', true, time() + (60*60*24*365), '/');?>
<? } ?>
Set a basic cookie for simple content wrapping
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.