Ok. I think that was a problem with the cookies in my computer. When I tried that from another computer, it was working fine.
But I need one help. I think that many users may click on the download link of an image, more than once . Can we make the script allow the same file to be clicked more than once, or even download more than once without affecting the counter. It is because a user may have a broken download, in that case he can download the same image again.
Thanks
Binu