note 58049 added to function.setcookie

From: Date: Sat, 22 Oct 2005 14:28:11 +0000
Subject: note 58049 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-97410@lists.php.net to get a copy of this message
I know howto set the cookie but then how do i make it find the cookie and figure out if somebody has voted already eg: You havnt voted before (within the hour) a cookie is set for it to expire in an hour Your allowed to vote You have voted before and the cookie was set 20 mins ago (an hour cookie) You click vote It echos Sorry you have already voted. Thanks, Mikey ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58049 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58049&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58049&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58049&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58049&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58049&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58049&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58049&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58049&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97410) next »