Using a cookie:
if (empty($_COOKIE['first_time'])) {
show_welcome_message();
setcookie("first_time", 1, time()+157680000); /* expire in 5 years */
}
Of course, if the users clears his cookies, he'll see the message again. If he doesn't accept cookies, he'll see the message all the time.