in reply to user id
In the case of point one, there is no *real* safe way of explicitly identifying a user over the web without the use of authentication. If you are in a static IP env, then you may be able to use that method, however if you have a proxy in the middle, you'll get the proxy IP.
The other problem you will face is person A sitting at person B's desk - you dont know who is at the keyboard.
In the case of point 2 (authentication) its really quite simple. There are many examples of code out there that will do it.
Points to consider rolling your own authen methodAnother thing i shout on about is the use of CGI::Application and HTML::Template. They provide a good solid framework for the production of scalable applications that are *easy* to change the look and feel of, and also plug new functionality into.
Method for (simple) authen protocol (Typical course of events)
You then also have to thing of things like administration (changing user pwds, adding/removing (l)users), password aging, transaction rate etc etc..
If you are thinking of building a web app that will handle authentication, these things really shouldnt be out of scope, even for the 1st rev of your application. You want people to like, (and use) your application, ommiting (what i consider essential) features may not give your users the impression you are after.
Even tho' this is big on theory with no examples (which i suspect you were after), I hope it provides a reasonable guide as to what you should consider when building CGI apps.
|
|---|