File: README.modperl2

package info (click to toggle)
libapache-authcookie-perl 3.10-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 232 kB
  • ctags: 49
  • sloc: perl: 841; makefile: 41; sh: 29
file content (38 lines) | stat: -rw-r--r-- 1,498 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
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: README.modperl2,v 1.3 2005/04/18 05:19:59 mschout Exp $