Bug #15127: I don't get any error messages but it loops

From: Date: Mon, 21 Jan 2002 00:25:48 +0000
Subject: Bug #15127: I don't get any error messages but it loops
Groups: php.dev 
Request: Send a blank email to php-dev+get-77614@lists.php.net to get a copy of this message
From: tjayah@dplanet.ch 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

« previous php.dev (#77614) next »