ID: 15107
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Duplicate
Old Bug Type: Reproducible crash
Bug Type: Session related
Operating System: Windows 98
PHP Version: 4.1.1
New Comment:

it shouldn't crash. There is report for this problem.
Status = Duplicate


Previous Comments:
------------------------------------------------------------------------

[2002-01-18 18:10:32] [EMAIL PROTECTED]

<?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;
                //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;
                //header( "Location: login.php" );
                exit;
                }
It goes through only this verification not 

$session[logged_in] = true;
        return $ecust_row;      

Tuan

------------------------------------------------------------------------

[2002-01-18 15:48:02] [EMAIL PROTECTED]


Sorry, the reason was because the /tmp folder was missing.



------------------------------------------------------------------------

[2002-01-18 15:17:59] [EMAIL PROTECTED]


I am using PHP 4.1.1. with apache 1.3.22 on Win98.

This script (or any script that involves sessions) produces the error
message below:

<?  
session_start( ); 
session_register("username","password"); 
?> 

PHP caused an invalid page fault in
module PHP4TS.DLL at 0177:10054373.
Registers:
EAX=00000028 CS=0177 EIP=10054373 EFLGS=00010206
EBX=00760320 SS=017f ESP=0063fa48 EBP=100a01c0
ECX=00000015 DS=017f ESI=00760320 FS=59d7
EDX=00764f10 ES=017f EDI=101290a0 GS=0000
Bytes at CS:EIP:
8b 10 8d 4c 24 1c 51 52 e8 e0 51 05 00 8d 44 24 
Stack dump:
101290a0 00760320 00760320 00000001 00000001 00760320 1005430d
00760320
00760320 100544fb 00760320 0078d410 100a01e9 00000001 0000000a 00760320


 


------------------------------------------------------------------------

[2002-01-18 15:13:51] [EMAIL PROTECTED]


This script (or any script that involves sessions) produces the error
message below:

<?  
session_start( ); 
session_register("username","password"); 
?> 


PHP caused an invalid page fault in
module PHP4TS.DLL at 0177:10054373.
Registers:
EAX=00000028 CS=0177 EIP=10054373 EFLGS=00010206
EBX=00760320 SS=017f ESP=0063fa48 EBP=100a01c0
ECX=00000015 DS=017f ESI=00760320 FS=59d7
EDX=00764f10 ES=017f EDI=101290a0 GS=0000
Bytes at CS:EIP:
8b 10 8d 4c 24 1c 51 52 e8 e0 51 05 00 8d 44 24 
Stack dump:
101290a0 00760320 00760320 00000001 00000001 00760320 1005430d 00760320
00760320 100544fb 00760320 0078d410 100a01e9 00000001 0000000a 00760320


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=15107&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to