![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re: HTACCES & Cookiesby bronto (Priest) |
on Jun 26, 2002 at 07:37 UTC ( [id://177320]=note: print w/replies, xml ) | Need Help?? |
About question one, reply is: don't do it! It's possible to do it exchanging authentication information in hidden fields, but it's far more unsecure than letting the web server doing the authentication for you: it's part of its job and it knows well how to do it. Furthermore, basic authentication is unsecure in itself, and increasing unsecurity by letting your CGI do the authentication is really bad, bad, BAD. Anyway, if you need to know user's id within your code, you can read it from the environment ($ENV{REMOTE_USER}). About question 2: simply use CGI. Do a perldoc CGI and read on: there is all that you need -and much more. Ciao!
In Section
Seekers of Perl Wisdom
|
|