Cookie example 2

If you've entered your name before, it would have popped up. Otherwise, you would have had a prompt.