Page 1 of 1

User Variables Not Being Set

Posted: 20 Feb 2011, 06:45
by coolboy714cp
In my extension I have the following coding:

Code: Select all

...
uVars.headItem = sHeadItem;
uVars.bodyItem = sBodyItem;
...
_server.setUserVariables(userObj, uVars);
The sHeadItem variable receives a value from a database, as well as the sBodyItem.
The userObj and uVars are not null, so I don't see why the user variables aren't being set.
I know they are not being set because I don't see the update on the AdminTool.

Can anyone tell me what they think might be the problem?

Posted: 20 Feb 2011, 22:07
by BigFIsh
Try casting the variables with String, Boolean or Number

i.e. String(uVars.sHeadItem)

Posted: 21 Feb 2011, 05:25
by coolboy714cp
Alright, thanks! It works fine now.