Bug #15752 Updated: setcookie does not delete the cookie

From: Date: Wed, 27 Feb 2002 07:43:57 +0000
Subject: Bug #15752 Updated: setcookie does not delete the cookie
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1173@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#1173) next »