diff --git a/C4/Templates.pm b/C4/Templates.pm index 53e1dc5073..a3903ca26a 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -349,6 +349,7 @@ sub getlanguagecookie { -value => $language, -HttpOnly => 1, -expires => '+3y' + -secure => ( C4::Context->https_enabled() ? 1 : 0 ), ); return $cookie;