> -----Original Message-----
> From: Octavian Rasnita [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: Counter in Perl
> 
> 
> Hi all,
> I made a counter in Perl and if a visitor refreshes the page, 
> the counter
> increases.
> Can I modify the Perl script so that won't happend?
> Thanks.
> Teddy,
> My dear email address is [EMAIL PROTECTED]

Give him a cookie that expires after a while (a day maybe?).

If he sends the cookie, don't increment your counter.

Of course, if he refuses your cookie, this won't work.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to