Say Hello to returning visitors!
We can use cookies for show some custom messages to our visitor. But this cookies are comment_cookie. Also show custom message to normal visitors. If you want to show this custom messages read this article. Let’s Begin…
Here is the code;
<?php if(isset($_COOKIE['comment_author_'.COOKIEHASH])) {
$lastCommenter = $_COOKIE['comment_author_'.COOKIEHASH];
echo "Welcome Back ". $lastCommenter ."!";
} else {
echo "Welcome, Guest!";
} ?>
That’s All. Have a nice day!
