Random image per SESSION, not per reload
-
Title says it all ??
I’ve been using “Multiple Random Images” which I like a lot and it was easy to setup. But now I decided I want the image to change only 1x per user session, not on every load of a page. I’ve searched here and on Google but was not able to figure out how to go about this task, as all these random image scripts act on load of page and not on user session.
I tried it with
session_start();
and withif ($count > '1') { return; }
in various variations. My problem is that I could not figure out how to incorporate this into the existing plugin, it either continued loading random images or no image at all (but showed the title of the banner image).Any help appreciated!
- The topic ‘Random image per SESSION, not per reload’ is closed to new replies.