mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Improve cookie secure setting values
HTTPS 를 사용하는 상황에 대한 판단을 할 수 있는 상황에서 쿠키의 secure flag 를 달아준다.
This commit is contained in:
parent
3c1e5bd64f
commit
73da2af393
6 changed files with 12 additions and 7 deletions
|
|
@ -8,7 +8,7 @@
|
|||
dt.setTime(dt.getTime() + (d * 24 * 60 * 60000));
|
||||
e = "; expires=" + dt.toGMTString();
|
||||
}
|
||||
document.cookie = n + "=" + v + e + "; path=/";
|
||||
document.cookie = n + "=" + v + e + "; path=/" + ((enforce_ssl) ? ";secure" : "");
|
||||
}
|
||||
|
||||
var n = $('#nc_container');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue