I am running a java web start app, and I am passing a parameter to the app from my jnlp file. My jnlp file is generated by php so my code looks something like this:
$gProductID = intval($_COOKIE["productRef"]);
<jnlp ... >
This works just fine the first time I run it, but it seems from then on, it will run as though the same value I originally sent, is sent every time. In other word, if I run with value 14 the first time, it will run every time as though value 14 was sent, even though I have $gProductID set to another value like 16.
I found if I delete the sun java deployment cache, it lets me rerun with a new value. Obviously I can't expect users to clear their caches all the time so a solution is needed. Does this have to do with the cache? If so, how do I get around it? Or something else causing the problem?
Thanks for helping!