Hi! On Wed, Mar 17, 2004 at 01:35:40PM +0900, Batara Kesuma wrote:
> I am running a web site where users can upload their pictures. The > problem is, I don't want to let users view the pictures while they are > not logged in. I am thinking about using AuthName, AuthType on > httpd.conf, but I don't wan't to display the grey pop up box, because I > already have my own login interface (which runs on ModPerl::Registry). > Can I make it so if users is already logged in, they won't see the grey > box, and if they haven't logged in yet and try to view the image file > directly (ex: http://domain.com/image.jpg) then they will get the grey > login box from AuthType? You will have to implement your own Authentification Mechanism. See mod_perl Cookbook, recipie 13.7 Or use eg Apache::AuthCookie, which implements a special Authentification Mechanism. In any case you'd like to use the same Auth Mechanism for both images and content, which probably means you have to factor you your current Auth stuff (running under registry) and promote it to proper Auth* handlers. -- -> Austrian Perl Workshop - 20th-22nd May - http://vienna.pm.org/ <- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/} -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html