php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15752 setcookie does not delete the cookie
Submitted: 2002-02-27 02:19 UTC Modified: 2002-02-27 02:43 UTC
From: mikhail at stylusinc dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.1.0 OS: Windows and FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mikhail at stylusinc dot com
New email:
PHP Version: OS:

 

 [2002-02-27 02:19 UTC] mikhail at stylusinc dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-27 02:43 UTC] sniper@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC