I have a system that whenever the client logs in, counts another visit, and on the first visit a welcome message appears. But if the user reloads the page again or changes the tab and returns to the main page, the welcome message appears again. It just stops appearing if it shuts down and logs in again, which increases the hit counter.
I thought I would put a request on the close button of the message for the database to consider the message as a view and it will not appear any more, but I would like to know if it is possible to make the user login, when it changes the tab or reloads the page, the message disappears definitively without using the database. Is it possible?