mirror of
https://github.com/e107inc/e107.git
synced 2025-06-04 09:54:56 +02:00
May help Cookie Issue #225
This commit is contained in:
parent
593c5e1f36
commit
36960d846e
@ -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)
|
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);
|
setcookie($name, $value, $expire, $path, $domain, $secure);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user