From:             [EMAIL PROTECTED]
Operating system: win 98
PHP version:      4.1.0
PHP Bug Type:     Session related
Bug description:  I don't get any error messages but it loops

<?php
function checkUser() 
  {
global $session, $logged_in;
$session[logged_in] = false;
$ecust_row = getRow( "etable", "id", $session[id] );
$tt=$ecust_row;

if ( !$ecust_row || $ecust_row[duser]!=$session[login] ||
  $ecust_row[dpass]!=$session[password] )
{
print $tt;
file://header( "Location: login.php" );
exit;
}
$session[logged_in] = true;
return $ecust_row; 
}
?>

Please help me 

The function code that i have given it dosent give any error messages
but It passes all verfication like username and password from the
database but after it call the checkuser function withou giving any
error messages it return's to login menu.

if ( !$ecust_row || $ecust_row[duser]!=$session[login] ||
  $ecust_row[dpass]!=$session[password] )
{
print $tt;
file://header( "Location: login.php" );
exit;
}
It goes through only this verification not 

$session[logged_in] = true;
return $ecust_row; 

Tuan

I have got a c:/tmp directory too.
-- 
Edit bug report at: http://bugs.php.net/?id=15127&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to