1Apache::Session::Store:U:sSeyrbaCsoen(t3r)ibuted Perl DoAcpuamcehnet:a:tSieosnsion::Store::Sybase(3)
2
3
4
6 Apache::Session::Store::Sybase - Store persistent data in a Sybase
7 database
8
10 use Apache::Session::Store::Sybase;
11
12 my $store = new Apache::Session::Store::MySQL;
13
14 $store->insert( $ref );
15 $store->update( $ref );
16 $store->materialize( $ref );
17 $store->remove( $ref );
18
20 Apache::Session::Store::Sybase fulfills the storage interface of
21 Apache::Session. Session data is stored in a Sybase database.
22
24 To use this module, you will need at least these columns in a table
25 called 'sessions':
26
27 id CHAR(32) # or however long your session IDs are.
28 a_session IMAGE
29
30 To create this schema, you can execute this command using the isql or
31 sqsh programs:
32
33 CREATE TABLE sessions (
34 id CHAR(32) not null primary key,
35 a_session TEXT
36 )
37 go
38
39 If you use some other command, ensure that there is a unique index on
40 the id column of the table
41
43 The module must know what datasource, username, and password to use
44 when connecting to the database. These values can be set using the
45 options hash (see Apache::Session documentation). The options are:
46
47 DataSource
48 UserName
49 Password
50
51 Example:
52
53 tie %hash, 'Apache::Session::Sybase', $id, {
54 DataSource => 'dbi:Sybase:database=db;server=server',
55 UserName => 'database_user',
56 Password => 'K00l',
57 Commit => 1,
58 };
59
60 Instead, you may pass in an already-opened DBI handle to your database.
61
62 tie %hash, 'Apache::Session::Sybase', $id, {
63 Handle => $dbh
64 };
65
66 Additional arguments you can pass to the backing store are:
67
68 Commit - whether we should commit any changes; if you pass in an
69 already-open database handle that has AutoCommit set to a true value,
70 you do not need to set this. If you let Apache::Session::Store::Sybase
71 create your database, handle, you must set this to a true value,
72 otherwise, your changes will not be saved
73 textsize - the value we should pass to the 'set textsize ' command that
74 sets the max size of the IMAGE field. Default is 32K (at least in
75 Sybase ASE 11.9.2).
76
78 This module was based on Apache::Session::Store::Oracle which was
79 written by Jeffrey William Baker <jwbaker@acm.org>; it was modified by
80 Chris Winters <chris@cwinters.com> to work with Apache::Session 1.5+
81 with changes from earlier version of Apache::Session::DBI::Sybase from
82 Mark Landry <mdlandry@lincoln.midcoast.com>.
83
85 Apache::Session
86
87
88
89perl v5.32.0 2020-09-19 Apache::Session::Store::Sybase(3)