Example of the cookie option

This commit is contained in:
Min-Soo Kim 2018-08-02 00:35:27 +09:00
parent d090f402cc
commit 93a35c251b
10 changed files with 36 additions and 4 deletions

View file

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