Bug #15127 Updated: I don't get any error messages but it loops
| From: | sander@php.net | Date: | Mon, 21 Jan 2002 14:50:43 +0000 |
| Subject: | Bug #15127 Updated: I don't get any error messages but it loops | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77687@lists.php.net to get a copy of this message | ||
ID: 15127
Updated by: sander
Old Summary: I don't get any error messages but it loops
Reported By: tjayah@dplanet.ch
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: win 98
PHP Version: 4.1.0
New Comment:
Not likely to be a bug. Ask support questions on the appropriate
mailinglist.
Previous Comments:
------------------------------------------------------------------------
[2002-01-20 19:25:46] tjayah@dplanet.ch
<?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 this bug report at http://bugs.php.net/?id=15127&edit=1