bguthrie
Posts: 31
|
Posted: 02/17/2004, 9:47 AM |
|
I have a session variable that contains CompanyName. I have set up a label with an action to retrieve value from the session variable and display it's contents. On my local machine all is ok, however, on my ISP hosted site my label contains the word "Object". Session variables seem to be working because I'm able to login using CCS security to pages and I'm able to filter records based upon a CompanyID session variable.
The code used to set the label value in it's Before Show event is:
//Retrieve Value for Control @29-3949B7FF
global $CompanyName;
$CompanyName->SetValue(CCGetSession("CompanyName"));
//End Retrieve Value for Control
I'd appreciate any ideas anyone might have.
_________________
Regards,
Bruce |
|
|
peterr
Posts: 5971
|
Posted: 02/17/2004, 12:51 PM |
|
Looks strange. Maybe first try using a different session name, for example "CName". Possibly this could help determine if the problem is related to the specific session name. Possibly also search your code for the word "Object" to see if you find anything interesting.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
bguthrie
Posts: 31
|
Posted: 02/17/2004, 1:22 PM |
|
Peter,
Changing the label name fixed the problem. For whatever reason, having the label and session variable named the same caused problems on the ISP's site. Things worked fine locally so like you said, it looked strange.
In any case, thank you once again for your assistance.
_________________
Regards,
Bruce |
|
|
|