Practical mod_perl / HTML Book /



previous page: Appendix A. mod_perl Recipes
  
page up: HTML Version of the book
  
next page: A.2. Reusing Data from POST Requests

A.1. Emulating the Authentication Mechanism


You can authenticate users with your own mechanism (instead of the standard one) but still make Apache think that the user was authenticated by the standard mechanism. Set the username with:

$r->connection->user('username');

Now you can use this information, for example, during logging, so that you can have your "username" passed as if it was transmitted to Apache through HTTP authentication.

 

Continue to:

  • prev: Appendix A. mod_perl Recipes
  • Table of Contents
  • next: A.2. Reusing Data from POST Requests







TOP
previous page: Appendix A. mod_perl Recipes
  
page up: HTML Version of the book
  
next page: A.2. Reusing Data from POST Requests


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com