php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9424 Setcookie don't work well
Submitted: 2001-02-23 11:25 UTC Modified: 2001-02-26 04:17 UTC
From: ncosta at seist dot com Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 4.0.4pl1 OS: Windows 2000
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: ncosta at seist dot com
New email:
PHP Version: OS:

 

 [2001-02-23 11:25 UTC] ncosta at seist dot com
I try to use this function to prevent that the same visitor vote for more than one time in a hour but it don't work, the code is this:
if($vote!=1)
{
$time=time();
$time=$time + 36000;
setcookie("vote","1",$time);
}

If the visitor vote, the vote counts, than if he try to vote again the vote don't count, but if he try again it counts, the cookie is delete and i don't know why, i use IE 5.5. 
Can some one help me.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-26 04:17 UTC] sniper@php.net
Read the manual page for setcookie:

http://www.php.net/setcookie

and ask further support questions on php-general@lists.php.net

--Jani

 [2002-04-22 12:22 UTC] ftouanen at yahoo dot fr
Bugs are existing when using setcookie PHP function under WINDOWS NT or 2K, or with IE5.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Oct 22 23:03:34 2021 UTC