File: README.modperl2

package info (click to toggle)
libapache2-authcookie-perl 3.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: perl: 1,560; sh: 101; makefile: 28
file content (38 lines) | stat: -rw-r--r-- 1,442 bytes parent folder | download | duplicates (7)
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
31
32
33
34
35
36
37
38
**** NOTICE: Version 3.07 is incompatible with previous releases. ***

As of release 3.07, you must be running mod_perl 2.0.0 RC5 or later.  Please
note that in mod_perl 2.0.0 RC5 many packages were reneamed.  See the mod_perl
documentation for updating your code for 2.0.0 RC5.

*****

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$