1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00

making the session name the same for www and non www

This commit is contained in:
daniel 2020-06-06 08:18:26 -03:00
parent 72ab964ece
commit a49aa1ce90

View file

@ -2,7 +2,7 @@
$global['webSiteRootURL'] .= (substr($global['webSiteRootURL'], -1) == '/' ? '' : '/'); $global['webSiteRootURL'] .= (substr($global['webSiteRootURL'], -1) == '/' ? '' : '/');
$global['systemRootPath'] .= (substr($global['systemRootPath'], -1) == '/' ? '' : '/'); $global['systemRootPath'] .= (substr($global['systemRootPath'], -1) == '/' ? '' : '/');
$global['session_name'] = preg_replace( '/[\W]/', '', $global['webSiteRootURL']); $global['session_name'] = md5($global['systemRootPath']);
session_name($global['session_name']); session_name($global['session_name']);
if(empty($global['logfile'])){ if(empty($global['logfile'])){