more useful options | |
PerlMonks |
Re: Current time as variable?by hanenkamp (Pilgrim) |
on Dec 10, 2003 at 20:01 UTC ( [id://313840]=note: print w/replies, xml ) | Need Help?? |
I don't know what the purpose of the timer is, but I thought I'd let you know of a potential risk factor if it is important that it not be faked. If you place the initial time in a hidden form variable a clever individual should be able to fake their test time. A better solution might be to use something like CGI::Session to store the initial time on the server and a session id on the client via your hidden form variable (or in a cookie or URL) to make certain that the timer is not abused.
In Section
Seekers of Perl Wisdom
|
|