Name

SessionDatabase — specify location of the file-based user sessions database

SYNOPSIS

filename_or_directory_name

DESCRIPTION

The SessionDatabase directive defines the location of the file-based user sessions database, and the path may be absolute.

For DBM sessions, an appropriate .db or .gdbm suffix will be appended. For the default file-based sessions, the directive specifies the name of a base sessions directory.

It is possible for multiple catalogs to share the same session file, as well as for multiple Interchange servers to serve the same catalogs. If serving an extremely busy store, multiple parallel Interchange servers can share the same (NFS-based) file system, and serve users in a "ping-pong" fashion using file-based sessions. On huge systems, even the level of directory hashing may be changed to increase file look-up speeds. By default, only 48 * 48 hashing is done.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Setting SessionDatabase

Put the following in catalog.cfg:

SessionDatabase session-data

NOTES

AVAILABILITY

SessionDatabase is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 587

['SessionDatabase',  'relative_dir',     'session'],

Source: lib/Vend/Config.pm
Line 3975 (context shows lines 3975-3989)

sub parse_relative_dir {
my($var, $value) = @_;

if (absolute_or_relative($value)) {
  config_error('Path %s not allowed in %s directive',
          $value, $var);
}

$C->{Source}{$var} = $value;

$value = "$C->{VendRoot}/$value"
  unless file_name_is_absolute($value);
$value =~ s./+$..;
$value;
}

AUTHORS

Interchange Development Group

SEE ALSO

SessionLockFile(7ic), SessionDB(7ic), SessionType(7ic), SessionExpire(7ic)

DocBook! Interchange!