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:
parent
72ab964ece
commit
a49aa1ce90
1 changed files with 1 additions and 1 deletions
|
@ -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'])){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue