check for cookie before downloading??

A

Anonymous

Guest
okay i just need to know the coding for when someone goes to download a file it check to see if that cookie is there and if it isn't i can display and error message and they can't download the file and if it is then they can download the file
 
You can check if any variable is set using isset(). So if you have a cookie called 'sugar', you can see if it's set using isset($_COOKIE['sugar']).
 
Back
Top