1Apache::Session::Flex(3U)ser Contributed Perl DocumentatiAopnache::Session::Flex(3)
2
3
4
6 Apache::Session::Flex - Specify everything at runtime
7
9 use Apache::Session::Flex;
10
11 tie %hash, 'Apache::Session::Flex', $id, {
12 Store => 'DB_File',
13 Lock => 'Null',
14 Generate => 'MD5',
15 Serialize => 'Storable'
16 };
17
18 # or
19
20 tie %hash, 'Apache::Session::Flex', $id, {
21 Store => 'Postgres',
22 Lock => 'Null',
23 Generate => 'MD5',
24 Serialize => 'Base64'
25 };
26
27 # you decide!
28
30 This module is an implementation of Apache::Session. Unlike other
31 implementations, it allows you to specify the backing store, locking
32 scheme, ID generator, and data serializer at runtime. You do this by
33 passing arguments in the usual Apache::Session style (see SYNOPSIS).
34 You may use any of the modules included in this distribution, or a
35 module of your own making. If you wish to use a module of your own
36 making, you should make sure that it is available under the
37 Apache::Session package namespace.
38
40 You pass the modules you want to use as arguments to the constructor.
41 The Apache::Session::Whatever part is appended for you: you should not
42 supply it. For example, if you wanted to use MySQL as the backing
43 store, you should give the argument "Store =" 'MySQL'>, and not "Store
44 =" 'Apache::Session::Store::MySQL'>. There are four modules that you
45 need to specify. Store is the backing store to use. Lock is the
46 locking scheme. Generate is the ID generation module. Serialize is
47 the data serialization module.
48
49 There are many modules included in this distribution. For each role,
50 they are:
51
52 Store:
53 MySQL
54 Postgres
55 DB_File
56 File
57
58 Lock:
59 Null
60 MySQL
61 Semaphore
62
63 Generate:
64 MD5
65
66 Serialize:
67 Storable
68 Base64
69 UUEncode
70
71 In addition to the arguments needed by this module, you must provide
72 whatever arguments are expected by the backing store and lock manager
73 that you are using. Please see the documentation for those modules.
74
76 This module was written by Jeffrey William Baker <jwbaker@acm.org>.
77
79 Apache::Session::File, Apache::Session::DB_File,
80 Apache::Session::MySQL, Apache::Session::Postgres, Apache::Session
81
82
83
84perl v5.32.0 2020-09-19 Apache::Session::Flex(3)