* Set httpOnly false for downloading and selfClose cookie.

This commit is contained in:
guanxiying
2019-11-26 16:34:38 +08:00
parent 0e87a83f83
commit d246b363d6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -863,7 +863,7 @@ class fileModel extends model
for($i = 0; $i < $obLevel; $i++) ob_end_clean();
/* Set the downloading cookie, thus the export form page can use it to judge whether to close the window or not. */
setcookie('downloading', 1);
setcookie('downloading', 1, 0, $this->config->webRoot, '', false, false)
/* Append the extension name auto. */
$extension = '.' . $fileType;
+1 -1
View File
@@ -856,7 +856,7 @@ class testtask extends control
else
{
/* set cookie for ajax load caselist when close colorbox. */
setcookie('selfClose', 1);
setcookie('selfClose', 1, 0, $this->config->webRoot, '', false, false);
if($preAndNext->next)
{