How can I encode a sound file to play in the background of my main page, but only once per session, not every time the visitor returns to the home page?
If you store a session variable to denote when you've played the file, you can just check the session variable and if it exists don't add the code to play it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.