mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +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['systemRootPath'] .= (substr($global['systemRootPath'], -1) == '/' ? '' : '/');
|
||||
$global['session_name'] = preg_replace( '/[\W]/', '', $global['webSiteRootURL']);
|
||||
$global['session_name'] = md5($global['systemRootPath']);
|
||||
session_name($global['session_name']);
|
||||
|
||||
if(empty($global['logfile'])){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue