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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 - 37 = ?
Subscribe to this entry?

 
 [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: Sat May 18 13:01:32 2024 UTC