Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-11-29 22:01 GMT
Find Nodes?
    Voting Booth?