Date: 02/23/01
- Next message: Martin Jansen: "[PHP-DEV] [feature request] return name of current function"
- Previous message: jide <email protected>: "[PHP-DEV] PHP 4.0 Bug #9423: Please create a function that returns name of currently executing function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: ncosta <email protected>
Operating system: Windows 2000
PHP version: 4.0.4pl1
PHP Bug Type: HTTP related
Bug description: Setcookie don't work well
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.
-- Edit Bug report at: http://bugs.php.net/?id=9424&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Martin Jansen: "[PHP-DEV] [feature request] return name of current function"
- Previous message: jide <email protected>: "[PHP-DEV] PHP 4.0 Bug #9423: Please create a function that returns name of currently executing function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

