I want to display a welcome video on my website only when it is the first time the user enters my site, I thought about using the following code:
$ip = $_SERVER['REMOTE_ADDR'];
It returns me the ip of the user and so I would store in the database and every time someone enters the site will do a search if they already had this ip, otherwise it displays the video, but would this be the correct form? In time the search would be very slow and heavy? How can I best resolve this if it is not the most viable?