|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-21 09:50 UTC] sander@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
<?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.