Update session.inc.php

Passing null to parameter #2 ($value) of type string is deprecated
This commit is contained in:
Jelle Luteijn 2023-06-20 14:03:20 +02:00 committed by GitHub
parent e38fa1e120
commit c327e23859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,13 +122,13 @@ function dec_secret($code) {
function _unset_cookie($name) {
$is_ssl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
setcookie($name, null, -1, null, null, $is_ssl);
setcookie($name, "", -1, "", "", $is_ssl);
}
function _store_auto_login($value) {
$is_ssl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
// set for 30 days
setcookie('NSEDIT_AUTOLOGIN', $value, time()+60*60*24*30, null, null, $is_ssl);
setcookie('NSEDIT_AUTOLOGIN', $value, time()+60*60*24*30, "", "", $is_ssl);
}
function try_login() {