How to set session variables using url variables

The goal is to set session variables using url variables, but can you also do this for the user and password ?
url variable (&Upwd) is not passed to session variable USER_PWD.
The variable USER is correctly passed, the variable USER_PWD is not!
The steps to set an OBIS session variable via a URL call utilizing the
instanceconfig.xml tag should be as follows
1. Create a session init block that will act as a ‘placeholder’ for the
session variable to be set via the url call – the variable can be set to
2. Set the ‘Enable any user to set the value’ option for the variable.
3. Add the following tag block to the instanceconfig.xml file anywhere
between the tags:


“TEST_VAR” should match the session variable name (case sensitive).
4. The following option will need to be appended to the OBI url passed -
&SETVAR=’variable value to pass. So a full example would be:
However, note that you cannot set the value of any System Security Session variable (specifically USER, PROXY, GROUP and WEBGROUPS) using any source method (e.g.: url, cookie, httpHeader) by design. Having this ability would open possible security breaches.
If you attempt to set the USER variable with the following instanceconfig.xml setting:
You will get the following error when using the url: http://localhost:9704/analytics/saw.dll?Dashboard&nquser=user1&nqpassword=public :
nQSError: 10018: Access for the requested connection is refused
nQSError: 1315 You do not have the permission to set the value of the variable :USER

No comments:

Post a Comment

Popular Posts