if ($ENV{MOD_PERL}) { require "Apache"; }
my $r = Apache->request;Drew At 05:16 PM 4/23/02 -0400, Sean Quinlan wrote: >Hey, do you know how to get Apache's request object from a CGI script? >I've set the AUTH_REQUIRED result to serve up my own login page for >timed out sessions. If I could get the request object from the CGI, I >could call the already written authentication method used for initial >BASIC auth logins. > >On Tue, 2002-04-23 at 16:11, Drew Taylor wrote: > > There's two ways to do this: the expire time on the cookie (less reliable) > > or setting an expire time as part of the cookie value (more reliable). And > > if you're using a cookie for anything other than a cryptographically > random > > session id, be sure to add a checksum (MD5 or SHA1) so you can detect > > tampering. > > > > Drew > > > > At 03:53 PM 4/23/02 -0400, John Saylor wrote: > > > > >( 02.04.23 15:16 -0400 ) Sean Quinlan: > > > > How do I either scrub the header or force Apache to resend the login > > > > request? > > > > > >If you use cookies to keep state, you can set a time stamp on them that > > >will force reauthentication once they expire. > > > > ====================================================================== > > Drew Taylor JA[P|m_p]H > > http://www.drewtaylor.com/ Just Another Perl|mod_perl Hacker > > mailto:[EMAIL PROTECTED] *** God bless America! *** > > ---------------------------------------------------------------------- > > Speakeasy.net: A DSL provider with a clue. Sign up today. > > http://www.speakeasy.net/refer/29655 > > ====================================================================== > > > > > > >-- >Sean Quinlan >mailto:[EMAIL PROTECTED] > >"You can discover more about a person in an hour of play than in a year >of >conversation" - Plato ====================================================================== Drew Taylor JA[P|m_p]H http://www.drewtaylor.com/ Just Another Perl|mod_perl Hacker mailto:[EMAIL PROTECTED] *** God bless America! *** ---------------------------------------------------------------------- Speakeasy.net: A DSL provider with a clue. Sign up today. http://www.speakeasy.net/refer/29655 ======================================================================
