Page 1 of 1

Display a part of page only once

Posted: Mon Oct 10, 2005 11:01 am
by pilau
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?

Posted: Mon Oct 10, 2005 11:07 am
by John Cartwright
Cookies seem to be the only half-reliable way ti remember people. Lots of people turn cookies off though :\

Posted: Mon Oct 10, 2005 11:10 am
by pilau
Well then they would have to suffer the wrath of the
"part-that-should-have-been-displayed-only-once-but-will-be-displayed-every-time-the-first-page-loads"! :twisted: