On Wed, 2007-01-10 at 22:20 +0200, Octavian Rasnita wrote:
> I guess that authorizing the users, then read() -ing the selected file and 
> serving to the browser is not very efficient, especially under mod_perl.
> Is there a better way?

Yes.  Writing an auth handler and then letting the normal handler deal
with serving the file is more efficient than that.  The most efficient
is using mod_auth_tkt on your proxy server and setting the ticket cookie
from your perl code when people log in.  Then the static files don't
need to touch mod_perl at all.

http://www.openfusion.com.au/labs/mod_auth_tkt/

- Perrin


_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to