Changing visibility of image through session (or something)
Posted: Wed Jul 10, 2002 2:37 pm
I'm trying to get the following to work. I have an image visible on a site. The visibility of the image is counted everytime someone sees it. Also when a person reloads the page.
The image is called with a Image tag in HTML through an php-script (like <img src=script.php?illus=car>.
What I try to accomplish is that this image is only made visible the first time the page is loaded. So that when the same user reloads the page he won't see the image anymore.
I'm thinking of using session_start, but I'm not sure how to integrate this. Anyone has a clue?
The image is called with a Image tag in HTML through an php-script (like <img src=script.php?illus=car>.
What I try to accomplish is that this image is only made visible the first time the page is loaded. So that when the same user reloads the page he won't see the image anymore.
I'm thinking of using session_start, but I'm not sure how to integrate this. Anyone has a clue?