| 1 | # See bottom of file for license and copyright information |
|---|
| 2 | package Foswiki::Configure::Checkers::Sessions::ExpireAfter; |
|---|
| 3 | |
|---|
| 4 | use strict; |
|---|
| 5 | |
|---|
| 6 | use Foswiki::Configure::Checker; |
|---|
| 7 | |
|---|
| 8 | use base 'Foswiki::Configure::Checker'; |
|---|
| 9 | |
|---|
| 10 | sub 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'); |
|---|
| 18 | Foswiki will *not* clean up sessions automatically. Make sure you |
|---|
| 19 | have a cron job running. |
|---|
| 20 | MESSAGE |
|---|
| 21 | } |
|---|
| 22 | return $e; |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | 1; |
|---|
| 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. |
|---|