php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15127 I don't get any error messages but it loops
Submitted: 2002-01-20 19:25 UTC Modified: 2002-01-21 09:50 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: tjayah at dplanet dot ch Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.1.0 OS: win 98
Private report: No CVE-ID: None
 [2002-01-20 19:25 UTC] tjayah at dplanet dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-21 09:50 UTC] sander@php.net
Not likely to be a bug. Ask support questions on the appropriate mailinglist.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 17:01:31 2024 UTC