From 4eaaa42eb2b1058f9395868f53264bd35b6c4306 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 24 Jul 2013 08:42:25 -0700 Subject: [PATCH] May fix some login/logout issues between admin and front-end. --- class2.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/class2.php b/class2.php index cb5027d9f..14619fec4 100644 --- a/class2.php +++ b/class2.php @@ -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; }