Atozed Forums

Full Version: ServerController.Sessionoptions.UniqueURL and WebApplication.Runparams ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

Regarding SA HTTP.SYS application, both as service and as GUI:

When I have the ServerController.Sessionoptions.UniqueURL set to true, the URL will look something like this:

http://127.0.0.1:8888/MyApp/Wo6F3EKYa0DEL1EeCF3xDmW/

I'm trying to add a Webapplication.runparams functionality to the application to get a startup value into my application. It works when I set the UniqueUrl to false, but not when it is set true. At least not the way I try it:

With UniqueUrl = false, I can make it work with http://127.0.0.1:8888/MyApp/$/start/?{value}

But when it is true, http://127.0.0.1:8888/MyApp/Wo6F3EKYa0DEL1EeCF3xDmW/$/start/?{value}, does not work.

How can I make Webapplication.runparams available in my application with UniqueUrl set to true ?

Regards
Soren
Hi Soren, start your application in the same way, with or without UniqueURL set to true.
http://127.0.0.1:8888/MyApp/$/start/?{value}
Hi Jose,

I see what you mean. By starting the app with http://127.0.0.1:8888/MyApp/$/start/?{value} (and UniqueUrl = true) it works AND after the appl is launched, the URL has been changed and now show the UniqueUrl, replacing MyApp/$/start. But ?{value}is still at the end of the url: http://127.0.0.1:8888/Wo6F3EKYa0DEL1EeCF3xDmW/?{value}

However, the value has been recorded at startup, and it doesn't appear to have any consequences that the /?{value} is still part of the Url. I'll find out more as I go along testing it.

Regards
Soren