View Full Version : creating a cookie

10-21-2006, 01:36 AM
Does anyone know code i can use to create a cookie which displaces a different html code the 2nd time someone visits my site?

I use a php file for the text on my site but I want people to see a different inc file the 2nd time they visit that page.

Does anyone know how i would do that?

10-21-2006, 04:04 AM
Use php cookies or sessions. Check for the session. If not set display certain html, if set display the other html.