Skip to content
Permalink
Browse files Browse the repository at this point in the history
Secure cookie test
  • Loading branch information
bloatware committed Aug 31, 2021
1 parent 925e363 commit 211fab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textpattern/lib/txplib_misc.php
Expand Up @@ -1033,7 +1033,7 @@ function set_cookie($name, $value = '', $options = array())
'expires' => time() - 3600,
'path' => '',
'domain' => '',
'secure' => false,
'secure' => strtolower(PROTOCOL) == 'https://',
'httponly' => false,
'samesite' => 'Lax' // None || Lax || Strict
);
Expand Down

0 comments on commit 211fab0

Please sign in to comment.