그누보드 크롬이 버전 업되면서, 세션이 끊기는 현상 제거하기
페이지 정보

본문
/common.php
7~8 라인 header 밑으로 아래 추가하기
// 보안설정이나 프레임이 달라도 쿠키가 통하도록 설정
header('P3P: CP="ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC"');
//================================================================================
// https://github.com/GoogleChromeLabs/samesite-examples/blob/master/php.md
// 7.3 이상
//setcookie('same-site-cookie', 'foo', ['samesite' => 'Lax']);
//setcookie('cross-site-cookie', 'bar', ['samesite' => 'None', 'secure' => true]);
// 7.3 미만
// Set a same-site cookie for first-party contexts
header('Set-Cookie: cookie1=value1; SameSite=Lax', false);
// Set a cross-site cookie for third-party contexts
header('Set-Cookie: cookie2=value2; SameSite=None; Secure', false);
//================================================================================
- 이전글영카트5, 그누보드5 - 웹에디터에서 video 태그 먹게 하기 (html5) 21.01.12
- 다음글curl 를 이용한 명령을 소스코드로 변환해줌 20.11.13
댓글목록
등록된 댓글이 없습니다.