Should use zm_session_start instead of session_start

This commit is contained in:
Isaac Connor 2019-08-16 15:08:10 -04:00
parent cfeedd39a4
commit 28155ebd90
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ if ( ('login' == $action) && isset($_REQUEST['username']) && ( ZM_AUTH_TYPE == '
$close_session = 0; $close_session = 0;
if ( !is_session_started() ) { if ( !is_session_started() ) {
session_start(); zm_session_start();
$close_session = 1; $close_session = 1;
} }
$_SESSION['remoteAddr'] = $_SERVER['REMOTE_ADDR']; // To help prevent session hijacking $_SESSION['remoteAddr'] = $_SERVER['REMOTE_ADDR']; // To help prevent session hijacking

View File

@ -217,7 +217,7 @@ function generateAuthHash($useRemoteAddr, $force=false) {
$auth = md5($authKey); $auth = md5($authKey);
$close_session = 0; $close_session = 0;
if ( !is_session_started() ) { if ( !is_session_started() ) {
session_start(); zm_session_start();
$close_session = 1; $close_session = 1;
} }
$_SESSION['AuthHash'.$_SESSION['remoteAddr']] = $auth; $_SESSION['AuthHash'.$_SESSION['remoteAddr']] = $auth;