I would like to know how to display the greeting message "Welcome User, You are logged in" once the user login and it should vanish within 5 seconds.

The message will be displayed once after the user's successful login but not again on the consecutive visit of the home page during the same session. Because I have taken username in session in the home.html.