Optionally access mod cookie in JavaScript

This commit is contained in:
ctrlcctrlv 2013-08-18 01:44:36 +00:00
parent 381cac2cb8
commit 52fe0c8989
2 changed files with 4 additions and 1 deletions

View file

@ -72,7 +72,7 @@ function setCookies() {
$mod['hash'][0] . // password
':' .
$mod['hash'][1], // salt
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, true);
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, $config['mod']['cookie_httponly']);
}
function destroyCookies() {