I am converting a client website from Slideshow Pro and Director to a combination of FlickR and SimpleViewer. So I need "albums" feature, corresponding to sets in Flickr. I have already created a PHP page with listing of all the sets.

Now I have to pass the set ID to SimpleViewer page "viewer.html".  The simplest way to go would be of course to dynamically re-write XML file (gallery.xml) and replace the set ID in it, but I know that xml file will be cached on the visitor's side and will display the same album every time, no matter what set ID is passed, unless the page "viewer.html" is refreshed.

So... We need to create XML files on the fly, such as "gallery_set_id_758843.xml" etc. How do we pass that info to "viewer.html"? 

Any other ideas?