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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tjayah at dplanet dot ch
New email:
PHP Version: OS:

 

 [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: Fri May 24 08:01:33 2024 UTC