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?
|
|
|
 |
|