On Wed, Sep 03, 2003 at 02:08:55PM -0500, Puneet Kishor wrote:

> 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.

Look at Apache::AuthCookie for use with mod_perl.

If working under CGI you will have to have some common code that's run
for all requests.  SpeedyCGI might also be worth looking at to avoid
loading your scripts at each request.


> 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.

I've never used Apache's "Action" directive, but maybe that might be 
helpful.  Perhaps a central script could deal with the session and then 
look at the rest of the path to determine what code to then load and 
run.

mod_perl is really the best tool for this.  



-- 
Bill Moseley
[EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to