Nik has asked for the wisdom of the Perl Monks concerning the following question:
Hello, with the above code i try not to log again the same visitor that refreshes my webpage. I just want to log him only the first time thet he enters my page. if he hits the submit button and index.pl runs again or he just refreshes his browser i do not want my code to log him again. so i used the above code.while ( $row = $st->fetchrow_hashref ) { if ( $host eq $row->{host} ) { exit 0; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: logging the user once every session
by exussum0 (Vicar) on May 25, 2004 at 03:42 UTC | |
|
Re: logging the user once every session
by eric256 (Parson) on May 24, 2004 at 23:26 UTC | |
| |
|
Re: logging the user once every session
by EvdB (Deacon) on May 25, 2004 at 07:29 UTC |