CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Session Variables Not Holding?

Print topic Send  topic

Author Message
PD Gunning
Posted: 04/23/2003, 5:42 PM

I am using the Logon template in codecharge which is directed to a redirection page which fails on every if, else clause for $UserRights. None of the variables are being passed I believe...how do i know if this is the problem or not?

Thanks.
kburnett
Posted: 04/23/2003, 6:05 PM

did you add UserRights to the CCLoginUser fuction in Commom? if not, then $UserRights are not getting added to your session.

function CCLoginUser($Login, $Password){
if($Result)
{
CCSetSession("UserID", $db->f("user_id"));
CCSetSession("UserLogin", $Login);
CCSetSession("UserPassword", $Password);
CCSetSession("GroupID", $db->f("permission"));
}
}

to test this simply add {user_rights} to an html page and then add a "before show" event...

global $Tpl;
$Tpl->SetVar("user_rights",CCGetSession("UserRights"));

that will tell you the value in the session.

make sense?

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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