source: trunk/core/lib/Foswiki/Configure/Checkers/Sessions/ExpireAfter.pm @ 1050

Revision 1050, 1.6 KB checked in by OlivierRaginel, 4 years ago (diff)

Item329: Fixed tagline

Line 
1# See bottom of file for license and copyright information
2package Foswiki::Configure::Checkers::Sessions::ExpireAfter;
3
4use strict;
5
6use Foswiki::Configure::Checker;
7
8use base 'Foswiki::Configure::Checker';
9
10sub check {
11    my $this = shift;
12
13    return '' unless $Foswiki::cfg{UseClientSessions};
14
15    my $e = '';
16    if ( $Foswiki::cfg{Sessions}{ExpireAfter} < 0 ) {
17        $e .= $this->WARN(<<'MESSAGE');
18Foswiki will *not* clean up sessions automatically. Make sure you
19have a cron job running.
20MESSAGE
21    }
22    return $e;
23}
24
251;
26__DATA__
27#
28# Foswiki - The Free and Open Source Wiki, http://foswiki.org/
29#
30# Copyright (C) 2008 Foswiki Contributors. All Rights Reserved.
31# Foswiki Contributors are listed in the AUTHORS file in the root
32# of this distribution. NOTE: Please extend that file, not this notice.
33#
34# Additional copyrights apply to some or all of the code in this
35# file as follows:
36#
37# Copyright (C) 2000-2006 TWiki Contributors. All Rights Reserved.
38# TWiki Contributors are listed in the AUTHORS file in the root
39# of this distribution. NOTE: Please extend that file, not this notice.
40#
41# This program is free software; you can redistribute it and/or
42# modify it under the terms of the GNU General Public License
43# as published by the Free Software Foundation; either version 2
44# of the License, or (at your option) any later version. For
45# more details read LICENSE in the root of this distribution.
46#
47# This program is distributed in the hope that it will be useful,
48# but WITHOUT ANY WARRANTY; without even the implied warranty of
49# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
50#
51# As per the GPL, removal of this notice is prohibited.
Note: See TracBrowser for help on using the repository browser.