diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index 47bce8786b..4ab872c900 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -468,7 +468,7 @@ $cookie = $cookie_mgr->replace_in_list( $query->cookie( -name => 'JWT', -value => $jwt // '', - -expires => $jwt ? '+1d' : '', + -expires => $jwt ? '+1d' : '-1d', -HttpOnly => 1, -secure => ( C4::Context->https_enabled() ? 1 : 0 ), -sameSite => 'Lax'