Skip to content

Commit

Permalink
samesite
Browse files Browse the repository at this point in the history
  • Loading branch information
wilderamorim committed May 28, 2023
1 parent dcd37ea commit e1b3b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ $options['domain'] = '';
$options['secure'] = false;
$options['httponly'] = false;

// other optional parameters
// SameSite
$options['samesite'] = 'None'; // must be 'None', 'Lax' or 'Strict'. If none requires secure true
$options['secure'] = true; // // required if samesite is 'None'
$options['secure'] = true; // required if samesite is 'None'

$cookie = new Cookie($options);
```
Expand Down

0 comments on commit e1b3b76

Please sign in to comment.