1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-02 17:04:58 +02:00

May help Cookie Issue #225

This commit is contained in:
Cameron 2013-05-26 13:46:31 -07:00
parent 593c5e1f36
commit 36960d846e

View File

@ -1912,6 +1912,11 @@ if(!isset($_E107['no_online']) && varset($pref['track_online']))
*/
function cookie($name, $value, $expire=0, $path = e_HTTP, $domain = '', $secure = 0)
{
if(!e_SUBDOMAIN || (defined('MULTILANG_SUBDOMAIN') && MULTILANG_SUBDOMAIN === TRUE))
{
$domain = (e_DOMAIN != FALSE) ? ".".e_DOMAIN : "";
}
setcookie($name, $value, $expire, $path, $domain, $secure);
}