php - How do I show an element on page load, but only the first time the user loads the page? -


not sure how make work. guessing can store cookie or (i unfamiliar cookies or session tracking).

basically, when visits page, want load div element (like "welcome to..."). if visit page again later, don't want div load. better, if visit page, couple weeks later, make div element load again.

server running php (wordpress).

any appreciated.

cookies ask. can set expiration date on cookie, allow welcome message come again if user hasn't visited site in few weeks.

here's quick tutorial on using cookies in php.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -