perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Peters <>
Subject Re: Persisting data across authenticate <-> authorize ?
Date Fri, 10 Dec 2004 20:36:34 GMT
Tim Pushor wrote:
> Hi modperl list
> First of all, I am so excited to have discovered mod_perl. I have been 
> writing modules in C for a while now, and have been porting an old 
> module that used to work under Apache 1.2 to work on Apache 1.3 and am 
> having trouble for various reasons. I picked up mod_perl and in less 
> time than porting an old (already had been in production) module to a 
> new environment, I have almost completely re-written the module in perl. 
> Oh why didn't I do this sooner ;-)
> My real question is this: I am writing an authentication / authorization 
> module. For various reasons, the authenticatoin portion determines 
> various things about the user in order to provide succesfull 
> authentication. This information can then be used later, in the 
> authorization module. I would like to cache this information somehow so 
> that the authorization handler doesn't need to perform these operations 
> over. I am already using IPC::Shareable in the authentication handler 
> and would prefer to not use that mechanism. Is there a way to have the 
> data persist across the authenticate/authorize parts of the module?

If you are just trying to have data that you set in the authentication 
be seen in the authorization phase you could just use $r->pnotes().

Michael Peters
Plus Three, LP

Report problems:
Mail list info:
List etiquette:

View raw message