I am writing a counter that is created on the fly using GD::Image. I am running into a problem with setting a cookie to ensure that the same user is not counted more than once, as I wish to only count unique hits. The problem is setting the cookie. I am not sure if it is possible to print out more than one header in a script, but since the cookie requires sending a header, and the image requires sending a header, there is a real problem here. Can anyone advise me on how to accomplish this?
derekn 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.