Does anyone know of a tutorial that will help me create a simple (just enough to keep out the average surfer) password protection code with a cookie?
Here is what I want to do:
I offer downloadable image files at my website. Currently they are free to download to anyone who visits. What I would like to do, however, is password protect each file so that only subscribers to my ezine can download these files. I still want surfers to see the images available, I just don't want them to be able to download them. To keep the site user friendly I would additionally like there to be a cookie attached that allows subscribers to revisit my site and continue to download images for a set period after each previous download without having to re-enter the login/password (say a month).
Any ideas where I can find some tutorials to help me with this? Thanks for any insight and references.