Skip to content

Commit af6107c

Browse files
authored
Merge pull request #56 from xurizaemon/setcookie-no-null-options
`setcookie()` expires_or_options param is integer not mixed
2 parents 6323840 + 6c6f253 commit af6107c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web-fixtures/sub-folder/cookie_page4.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}
55

66
$cookiePath = dirname($_SERVER['REQUEST_URI']) . '/';
7-
setcookie('srvr_cookie', $cookieValue, null, $cookiePath);
7+
setcookie('srvr_cookie', $cookieValue, 0, $cookiePath);
88
?>
99
<!DOCTYPE html>
1010
<html>

0 commit comments

Comments
 (0)