Bug #15752 Updated: setcookie does not delete the cookie
ID: 15752
Updated by: sniper@php.net
Reported By: mikhail@stylusinc.com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Windows and FreeBSD
PHP Version: 4.1.0
New Comment:
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php
Previous Comments:
------------------------------------------------------------------------
[2002-02-27 02:19:12] mikhail@stylusinc.com
Hello,
Upon member login we set a cookie using:
setcookie('userid','123');
Upon logout, we try deleting it using:
setcookie('userid');
I have also tried:
setcookie('userid','');
setcookie('ses_userid','0',time()-1);
This does not work. Even after logout, the visitor gains access to the
member panel. We use Windows with PHP 4.1.0 and also a FreeBSD server
with 4.1.1.
Regards,
Mikhail
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15752&edit=1
Thread (2 messages)