1Apache::Session::PostgrUesse(r3)Contributed Perl DocumenAtpaatcihoen::Session::Postgres(3)
2
3
4
6 Apache::Session::Postgres - An implementation of Apache::Session
7
9 use Apache::Session::Postgres;
10
11 #if you want Apache::Session to open new DB handles:
12
13 tie %hash, 'Apache::Session::Postgres', $id, {
14 DataSource => 'dbi:Pg:dbname=sessions',
15 UserName => $db_user,
16 Password => $db_pass,
17 Commit => 1
18 };
19
20 #or, if your handles are already opened:
21
22 tie %hash, 'Apache::Session::Postgres', $id, {
23 Handle => $dbh,
24 Commit => 1
25 };
26
28 This module is an implementation of Apache::Session. It uses the
29 Postgres backing store and no locking. See the example, and the
30 documentation for Apache::Session::Store::Postgres for more details.
31
33 The special Apache::Session argument for this module is Commit. You
34 MUST provide the Commit argument, which instructs this module to either
35 commit the transaction when it is finished, or to simply do nothing.
36 This feature is provided so that this module will not have adverse
37 interactions with your local transaction policy, nor your local
38 database handle caching policy. The argument is mandatory in order to
39 make you think about this problem.
40
42 This module was written by Jeffrey William Baker <jwbaker@acm.org>.
43
45 Apache::Session::File, Apache::Session::Flex, Apache::Session::DB_File,
46 Apache::Session::Postgres, Apache::Session
47
48
49
50perl v5.30.1 2020-01-29 Apache::Session::Postgres(3)