Re: [htmltmpl] securing an H::T site with username/password w/ses sion mgt1
Brought to you by:
samtregar
From: Puneet K. <pk...@ei...> - 2003-09-03 19:06:48
|
Ragan, Steve wrote: > Sorry, but I can't reply to the list from work. > > Anyway, here's a link to a good explanation of it all - > > http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html > > It's the server which senses that the request is for a 'protected' directory > > and responds with an authentication challenge. Upon reciept of that > challenge the browser > displays the familiar login prompt box. > Once authenticated, the username is available in the REMOTE_USER environment > variable. > That's the name you can use to look up further info in the database. > > Good luck, > Steve Thanks Steve, but that doesn't do what I need (as posted in my other emails), unless I haven't fully understood the flexibility and power of .htaccess. I have read a fair amount of Apache docs and tutorials, as well as docs for various CPAN modules... the closest "tutorial" for doing what I want was on CGI::Session::Cookbook, but that calls for the security subroutine to be called at the top of every script in the directory. I would like this to be done automagically for every file in the directory and all the subdirectories, etc. I guess what I am looking for is whether it is possible to call a perl script from within .htaccess (and whether that is even a correct way of doing this), and how I can protect my templates (.tmpl) files. Thanks. |