File: README.modperl2

package info (click to toggle)
libapache-authcookie-perl 3.06-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 256 kB
  • ctags: 16
  • sloc: perl: 157; makefile: 52
file content (30 lines) | stat: -rw-r--r-- 1,211 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Notes for migrating from mod_perl version 1.x to mod_perl version 2:

API changes:

In order to avoid requiring the GlobalRequest option under mod_perl 2, the
interface to several of the public AuthCookie methods needed to change.  Every
method that called Apache->request internally, now expects $r to be passed in
as the first argument.  The affected methods are:

   modperl 1.x API           modperl 2.x API
   --------------            ----------------
   handle_cache()            handle_cache($r)
   remove_cookie()           remove_cookie($r)
   login_form()              login_form($r)
   send_cookie($ses_key)     send_cookie($r, $ses_key)
   key()                     key($r)

So, for example, instead of $auth_type->login_form(), you now need to call
$auth_type->login_form($r).

Also Note that the Apache interface for retrieving the auth type and username
has changed in mod_perl 2, so you will need to update these calls in your
AuthCookie subclass as well:

   modperl 1.x                modperl 2.x
   --------------------       ----------------
   $r->auth_type              $r->ap_auth_type
   $r->connection->user       $r->user

$Id: README.modperl2,v 1.2 2003/08/01 23:02:45 mschout Exp $