Jump to content

Cookies . Help!!


Recommended Posts

Hey Everyone,


I just have a quick question. I have a page that has set a cookie called email_success with the value "yes". I now need some code so that when the user goes to a download page, it checks for the cookie and if there is no cookie it redirects to another page. But  if there is the cookie it displays the download page.  I tried i few things but didn't work.


Can anyone help me please!!




Link to comment
Share on other sites

How did you set the cookie? I've had problems with that because the newer versions of php changed it a little...


Also you're else statement doesn't need the ; at the very end..


else { header("Location: http://www.ipgbmusic.co.cc/index.html"); }

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.