ID: 27462 Updated by: [EMAIL PROTECTED] Reported By: clarence_cheong at yahoo dot com -Status: Open +Status: Bogus Bug Type: Performance problem Operating System: Windows XP PHP Version: 4.3.5RC3 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. . Previous Comments: ------------------------------------------------------------------------ [2004-03-02 12:43:35] clarence_cheong at yahoo dot com 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 this bug report at http://bugs.php.net/?id=27462&edit=1