Be sure not to expire persistent sessions (#495)

environments/ppa-mbqj77/deployments/1
Clément Oudot 9 years ago
parent 6165ac1e59
commit 119126a28c
  1. 3
      lemonldap-ng-portal/example/scripts/purgeCentralCache

@ -164,6 +164,9 @@ for my $options (@backends) {
# Do net check sessions without _utime
return undef unless $entry->{_utime};
# Do not expire persistent sessions
return undef if ( $entry->{_session_kind} eq "Persistent" );
# Session expired
if ( $time - $entry->{_utime} > $conf->{timeout} ) {
push @t, $id;

Loading…
Cancel
Save