1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 17:01:43 +02:00

May fix some login/logout issues between admin and front-end.

This commit is contained in:
Cameron
2013-07-24 08:42:25 -07:00
parent 7b3af82b95
commit 4eaaa42eb2

View File

@@ -1942,6 +1942,11 @@ function session_set($name, $value, $expire='', $path = e_HTTP, $domain = '', $s
}
else
{
if(($domain == '' && !e_SUBDOMAIN) || (defined('MULTILANG_SUBDOMAIN') && MULTILANG_SUBDOMAIN === TRUE))
{
$domain = (e_DOMAIN != FALSE) ? ".".e_DOMAIN : "";
}
setcookie($name, $value, $expire, $path, $domain, $secure);
$_COOKIE[$name] = $value;
}