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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 08:01:27 2025 UTC