After some extensive testing, I found an issue with Webstart that I can’t understand. If I embed a .php file with stuff from my .jnlp, and put in some stuff in tags which are dependent on the current browser session, I get issues.
Right now I’m passing the user id from my php database to manage game saving. However, when I load the .php (I can do the same thing with a .jnlp file too), Webstart goes and calls the URL to it AGAIN.
This is a problem because webstart isn’t linked to the same session, and therefore it isn’t linked to the cookies either. That means my database doesn’t recognize it from the same session. This is a vital issue because being logged in to my site means you’ll be given the correct user id. Since Webstart’s own little session ISN’T logged in, it’ll get passed a value to say that it is not logged in.
I want Webstart to use the .jnlp or .php I just loaded, and NOT load another one. I know I could do something like give it a URL to a different .jnlp with static data that I generate when the initial .php is called, but that’s really ugly and will result in a lot of unnecessary files created, as well as problems with multiple users trying to use the same computer.
How can I convince Webstart to use what I give it and not grab the .php or .jnlp file again? By the way, SpuTTer tested this idea and said he got the same results so I know it’s not a fluke or me misreading what’s going on
PS: The rant in the title about Applet’s being able to do this is because you can just add parameters to the Applet calling code very easily, whereas it’s so much more complicated with Webstart to the point where it doesn’t even work, as I’ve illustrated.