From:             clarence_cheong at yahoo dot com
Operating system: Windows XP
PHP version:      4.3.5RC3
PHP Bug Type:     Performance problem
Bug description:  Cookie Problem

Description:
------------
I am attempting to make a login system,

After a login, i the Login Page script





At every secured page, i do an if statement to check if the cookie is
there, before the information loads...





The problem happens at the logout page, 

Cookie value refuse to change!



Changes done to php.ini are just register_global and display_error

Reproduce code:
---------------
#==================

# Login Page

#==================

function incTimeOut() {

include "config/config_dat.php";

  setcookie("session", "true", time()+$timeout);

  setcookie("session2", "true");

}

//$timeout can be found in config_dat.php





#==================

# Logoff Page

#==================



function logout() {

  setcookie("session", "false", time()-10);

  setcookie("session2", "false", time()-10);

}





Expected result:
----------------
Expected to see both the cookie value becoming false after running the
logout page.



Actual result:
--------------
I did an echo along the pages to see the cookie value, but unfortunately,
session and session2 kept remaining at "true" (At all pages in that
folder)

-- 
Edit bug report at http://bugs.php.net/?id=27462&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27462&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27462&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27462&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27462&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27462&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27462&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27462&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27462&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27462&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27462&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27462&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27462&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27462&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27462&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27462&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27462&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27462&r=float

Reply via email to