I am very new to perl, Ok, I know nothing. Although I am wondering if you did something like
if (Remote_host NotEqual LastRemote_host) { LastRemote_host==env{remote_host}; Counter++; Open counter_File; Update counter_File(Counter,,, blah i have no idea); Close counter_File; } Or something... I am just wondering if this is remotely a valid idea. Later [EMAIL PROTECTED] ----- Original Message ----- From: "Marty Landman" <[EMAIL PROTECTED]> To: "Bob Showalter" <[EMAIL PROTECTED]>; "'Octavian Rasnita'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 12, 2002 7:26 AM Subject: RE: Counter in Perl > At 09:45 AM 2/12/02 -0500, Bob Showalter wrote: > > > > 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? > > > >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. > > Why even put an expiration on the cookie? If there is no expiration date > than it's a session cookie so it only lasts as long as the browser is > active. You may also want to set the page url on the cookie otherwise if > they click to another page your counter won't increment... see what I mean? > > hth, > > Marty > > SIMPL(tm) Content Management & WebSite Creation > http://face2interface.com/Home/Demo.shtml > Complementary Color Picker > http://face2interface.com/WebSafe > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]