mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
Revert "Fix httpOnly flag by mistake.... (#1032)"
This reverts commit 0347bb7053.
This commit is contained in:
parent
0347bb7053
commit
cfca05c897
4 changed files with 5 additions and 5 deletions
|
|
@ -300,7 +300,7 @@ class Context
|
||||||
{
|
{
|
||||||
if($_COOKIE['lang_type'] !== $lang_type)
|
if($_COOKIE['lang_type'] !== $lang_type)
|
||||||
{
|
{
|
||||||
setcookie('lang_type', $lang_type, 0, '/', null, RX_SSL);
|
setcookie('lang_type', $lang_type, time() + 86400, '/', null, RX_SSL, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif($_COOKIE['lang_type'])
|
elseif($_COOKIE['lang_type'])
|
||||||
|
|
@ -316,7 +316,7 @@ class Context
|
||||||
if(!strncasecmp($lang_code, $_SERVER['HTTP_ACCEPT_LANGUAGE'], strlen($lang_code)))
|
if(!strncasecmp($lang_code, $_SERVER['HTTP_ACCEPT_LANGUAGE'], strlen($lang_code)))
|
||||||
{
|
{
|
||||||
$lang_type = $lang_code;
|
$lang_type = $lang_code;
|
||||||
setcookie('lang_type', $lang_type, 0, '/', null, RX_SSL);
|
setcookie('lang_type', $lang_type, time() + 86400, '/', null, RX_SSL, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ class Mobile
|
||||||
$uatype = $uahash . ':' . (self::$_ismobile ? '1' : '0');
|
$uatype = $uahash . ':' . (self::$_ismobile ? '1' : '0');
|
||||||
if ($cookie !== $uatype)
|
if ($cookie !== $uatype)
|
||||||
{
|
{
|
||||||
setcookie('rx_uatype', $uatype, 0, null, null, RX_SSL);
|
setcookie('rx_uatype', $uatype, 0, null, null, RX_SSL, true);
|
||||||
$_COOKIE['rx_uatype'] = $uatype;
|
$_COOKIE['rx_uatype'] = $uatype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -297,7 +297,7 @@ class Session
|
||||||
$ssl_only = (\RX_SSL && config('session.use_ssl')) ? true : false;
|
$ssl_only = (\RX_SSL && config('session.use_ssl')) ? true : false;
|
||||||
|
|
||||||
// Set sso cookie to prevent multiple simultaneous SSO validation requests.
|
// Set sso cookie to prevent multiple simultaneous SSO validation requests.
|
||||||
setcookie('sso', md5($current_domain), 0, '/', null, null, $ssl_only);
|
setcookie('sso', md5($current_domain), 0, '/', null, null, $ssl_only, true);
|
||||||
|
|
||||||
// Redirect to the default site.
|
// Redirect to the default site.
|
||||||
$sso_request = Security::encrypt($current_url);
|
$sso_request = Security::encrypt($current_url);
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,7 @@ class memberView extends member
|
||||||
$ssl_only = (\RX_SSL && config('session.use_ssl')) ? true : false;
|
$ssl_only = (\RX_SSL && config('session.use_ssl')) ? true : false;
|
||||||
|
|
||||||
//setcookie for redirect url in case of going to member sign up
|
//setcookie for redirect url in case of going to member sign up
|
||||||
setcookie("XE_REDIRECT_URL", $_SERVER['HTTP_REFERER'], 0, null, null, $ssl_only);
|
setcookie("XE_REDIRECT_URL", $_SERVER['HTTP_REFERER'], 0, null, null, $ssl_only, true);
|
||||||
|
|
||||||
$member_config = $this->member_config;
|
$member_config = $this->member_config;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue