Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: setcookie() expects parameter 3 to be integer #29

Closed
GitHubKane opened this issue Sep 7, 2022 · 1 comment
Closed

Warning: setcookie() expects parameter 3 to be integer #29

GitHubKane opened this issue Sep 7, 2022 · 1 comment

Comments

@GitHubKane
Copy link

GitHubKane commented Sep 7, 2022

Warning: setcookie() expects parameter 3 to be integer, array given in C:\xampp\htdocs\mutillidae1\index.php on line 137
setcookie

@webpwnized
Copy link
Owner

Once you update to PHP version 7.3 or higher, the warning should not show anymore.

From https://www.php.net/manual/en/function.setcookie.php:

7.3.0 | An alternative signature supporting an options array has been added. This signature supports also the setting of the SameSite cookie attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants