CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Session Variables

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.