I hope to use perl script only to implement a password protection scheme before entering some pages.
For example, before entering the page-- first.pl, a password and user name must be entered at the page -- password.pl. If either user name or password is incorrect, back to the previous page. On the other hand, if the password and user name is correct, enter the page -- first.pl. The main problem I faced is here. If the user had already entered the page first.pl succesfully once, next time he wants to enter this page, no password and user name will be required. Thus I don't want to enter the page password.pl anymore. I only want to enter the page first.pl directly.
Can I do like this by only using Perl???