1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

May help session subdomain issues.

This commit is contained in:
Cameron 2013-06-06 12:50:43 -07:00
parent 256f4b08b1
commit 73e095f14f

View File

@ -441,7 +441,8 @@ class e_session
if (empty($this->_options['domain'])) if (empty($this->_options['domain']))
{ {
// MULTILANG_SUBDOMAIN set during initial language detection in language handler // MULTILANG_SUBDOMAIN set during initial language detection in language handler
$this->_options['domain'] = deftrue('MULTILANG_SUBDOMAIN') ? '.'.e_DOMAIN : ''; $doma = ((!e_SUBDOMAIN || defsettrue('MULTILANG_SUBDOMAIN')) && e_DOMAIN != FALSE) ? ".".e_DOMAIN : FALSE; // from v1.x
$this->_options['domain'] = $doma;
} }
if (empty($this->_options['path'])) if (empty($this->_options['path']))