mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
Refine secure cookie flag
_use_ssl 대신 site_module_info 를 직접 참조하도록 수정. 함수 이름을 조금 더 자연스럽게 수정.
This commit is contained in:
parent
da95eed96e
commit
f8edfacde2
5 changed files with 11 additions and 10 deletions
|
|
@ -295,7 +295,7 @@ class Session
|
|||
if(!$is_default_domain && !\Context::get('sso_response') && $_COOKIE['sso'] !== md5($current_domain))
|
||||
{
|
||||
// Set sso cookie to prevent multiple simultaneous SSO validation requests.
|
||||
setcookie('sso', md5($current_domain), 0, '/', null, Context::checkSslEnforce());
|
||||
setcookie('sso', md5($current_domain), 0, '/', null, \Context::isAlwaysSSL());
|
||||
|
||||
// Redirect to the default site.
|
||||
$sso_request = Security::encrypt($current_url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue