User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 397,770 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,513 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1582 | Replies: 1
Reply
Join Date: Nov 2004
Posts: 229
Reputation: sam1 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

help with cookies

  #1  
Jan 10th, 2005
i have created this web page with html and php where i need to set cookies to block users voting more then once i have used something like this code:

if (isset($_COOKIE["x"]))
{
echo "You've already voted once!<br><br>";
}

but it doesnt work can any one help plz
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2005
Posts: 2
Reputation: SmoothDime is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
SmoothDime SmoothDime is offline Offline
Newbie Poster

Re: help help help with cookies

  #2  
Jan 10th, 2005
i had this same problem. make sure to set the TTL in your call to setcookie().
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 4:24 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC