Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ServerController.Sessionoptions.UniqueURL and WebApplication.Runparams ?
#1
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/Wo6F3EKYa0DE...rt/?{value}, does not work.

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

Regards
Soren
Reply
#2
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}
Reply
#3
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)