Revert "Improve cookie secure setting values"

This reverts commit 73da2af393.
This commit is contained in:
Kijin Sung 2018-04-23 00:43:24 +09:00
parent cfca05c897
commit 591e9cb270
6 changed files with 7 additions and 12 deletions

View file

@ -300,7 +300,7 @@ class Context
{
if($_COOKIE['lang_type'] !== $lang_type)
{
setcookie('lang_type', $lang_type, time() + 86400, '/', null, RX_SSL, true);
setcookie('lang_type', $lang_type, $_SERVER['REQUEST_TIME'] + 3600 * 24 * 1000, '/');
}
}
elseif($_COOKIE['lang_type'])
@ -316,7 +316,7 @@ class Context
if(!strncasecmp($lang_code, $_SERVER['HTTP_ACCEPT_LANGUAGE'], strlen($lang_code)))
{
$lang_type = $lang_code;
setcookie('lang_type', $lang_type, time() + 86400, '/', null, RX_SSL, true);
setcookie('lang_type', $lang_type, $_SERVER['REQUEST_TIME'] + 3600 * 24 * 1000, '/');
}
}
}

View file

@ -73,7 +73,7 @@ class Mobile
$uatype = $uahash . ':' . (self::$_ismobile ? '1' : '0');
if ($cookie !== $uatype)
{
setcookie('rx_uatype', $uatype, 0, null, null, RX_SSL, true);
setcookie('rx_uatype', $uatype, 0);
$_COOKIE['rx_uatype'] = $uatype;
}