mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Update session.inc.php
Passing null to parameter #2 ($value) of type string is deprecated
This commit is contained in:
parent
e38fa1e120
commit
c327e23859
1 changed files with 2 additions and 2 deletions
|
@ -122,13 +122,13 @@ function dec_secret($code) {
|
||||||
|
|
||||||
function _unset_cookie($name) {
|
function _unset_cookie($name) {
|
||||||
$is_ssl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
|
$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) {
|
function _store_auto_login($value) {
|
||||||
$is_ssl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
|
$is_ssl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
|
||||||
// set for 30 days
|
// 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() {
|
function try_login() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue