Display a part of page only once
Posted: Mon Oct 10, 2005 11:01 am
I need to display a part of my page only the first time a user displays the first page.
The site is not using sessions or any loging systems.
I thought of creating a cookie the first time the user displays the first page, that would last for an hour. The PHP page would check for that cookie's existance anf it's there - wouldn't display that part.
Is there a better and/or safer and/or faster and/or not based on time (e.g. 1 hour cookie) way to make this?
The site is not using sessions or any loging systems.
I thought of creating a cookie the first time the user displays the first page, that would last for an hour. The PHP page would check for that cookie's existance anf it's there - wouldn't display that part.
Is there a better and/or safer and/or faster and/or not based on time (e.g. 1 hour cookie) way to make this?