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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 + 49 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC