I\'ve developed a couple of alert boxes that display on all site pages.
The user is able to close each box separately:
My concrete and lendi process I suggesting you maintain back end database(like sql , mysql etc.) table for that can simple hold user_id, alert box display or not this type of 2 columns are create into that table.
1) If your user is registered user are used visit your site using user id or detail you can manage that alert box.
2) If user is not registered that time use MAC Id of visitor.