Skip to content

Commit

Permalink
コメント修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Feb 10, 2020
1 parent d3cd7dd commit bf2bac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/class/helper/SC_Helper_Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function sfSessRead($id)
if (empty($_COOKIE['ECSESSID']) && isset($_COOKIE['legacy-ECSESSID']) && $id !== $_COOKIE['legacy-ECSESSID']) {
// session_id と $_COOKIE['legacy-ECSESSID'] が異なる場合は ECSESSID の cookie が拒否されたと見なす
GC_Utils_Ex::gfPrintLog('replace session id: ECSESSID=>legacy-ECSESSID');
$id = $_COOKIE['legacy-ECSESSID']; // $_COOKIE['legacy-ECSESSID'] からセッションデータを読み込む
$id = $_COOKIE['legacy-ECSESSID']; // 互換用 cookie からセッションデータを読み込む
unset($_COOKIE['legacy-ECSESSID']);
}
$objQuery = SC_Query_Ex::getSingletonInstance();
Expand Down
2 changes: 1 addition & 1 deletion data/class/sessionfactory/SC_SessionFactory_UseCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function initSession()
session_name('ECSESSID');
session_start();
if (session_id() !== '') {
// SameSite=None を未サポートの UA 向けに cookie を発行する. secure option 必須
// SameSite=None を未サポートの UA 向けに 互換用 cookie を発行する. secure option 必須
setcookie('legacy-'.session_name(), session_id(), $params['lifetime'], $params['path'], $params['domain'], true, true);
}
}
Expand Down

0 comments on commit bf2bac1

Please sign in to comment.