Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Create CGI login for webpage

by swkronenfeld (Hermit)
on Dec 20, 2005 at 19:11 UTC ( #518158=note: print w/replies, xml ) Need Help??


in reply to Create CGI login for webpage

This isn't the easiest project to learn Perl with, but it's a lot more exciting than making "Hello world!" programs. I myself learned Perl by making an online forum, complete with login and managing sessions through cookies. I'll give you a few pointers, and then if you have more questions, come back and post some specifics.

  • Read Ovid's CGI course - the entire thing. If you find yourself getting impatient with reading, then take what you learned to go code some, and then come back to the CGI course later and read some more.
  • An easy way to track a session is through a cookie. Cookies can be set through javascript, or through the page headers.
  • Start small and code modular. Start with a plain text delimited file for usernames and passwords, and write a subroutine that verifies a user's credentials as input. This is a great way to get logins working, and allows for easy debugging (if you need to check that a password for a new account is getting stores correctly, it's plain text in the file). Once everything is working correctly, you can worry about upgrading your security to the point at which you feel comfortable.

Good luck, and have fun.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://518158]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2022-08-14 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?