Name

SessionExpire — specify a duration after which idle user sessions expire

SYNOPSIS

interval

DESCRIPTION

Website visitors can close their browser or move to browsing other sites without making the Web server aware of the fact.
This is a potential problem as new sessions would keep getting created, but they'd never be removed, wasting system resources.
The way we can detect "closed" sessions is by measuring time between user requests. We can expire sessions where no activity was registered for more than the specified interval.

SessionExpire specifies the maximum amount of time for which the session information is preserved between two consecutive user requests.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Setting SessionExpire

Put the following in catalog.cfg:

SessionExpire  20 minutes

NOTES

If CookieLogin is enabled, SessionExpire can be a small value. If the customer's browser has the Interchange session cookie stored, he or she will be automatically logged back in with the next request. Note, however, that the customer's cart and session values will be reset.

AVAILABILITY

SessionExpire is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 599

['SessionExpire',    'time',             '1 hour'],

Source: lib/Vend/Config.pm
Line 4096 (context shows lines 4096-4108)

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

return $value unless $value;

#  $C->{Source}->{$var} = [$value];

$n = time_to_seconds($value);
config_error("Bad time format ('$value') in the $var directive\n")
unless defined $n;
$n;
}

AUTHORS

Interchange Development Group

SEE ALSO

SessionLockFile(7ic), SessionDB(7ic), SessionType(7ic), SaveExpire(7ic), SessionDatabase(7ic)

DocBook! Interchange!