Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
SECURITY: Consistently set samesite attribute on cookies
  • Loading branch information
jpatokal authored Aug 22, 2024
2 parents bbaa763 + b96ce6c commit 837ea05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions php/countries.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

session_set_cookie_params(['samesite' => 'Strict']);
session_start();

include_once 'db_pdo.php';

// List of all countries
Expand Down
2 changes: 2 additions & 0 deletions php/logout.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

session_set_cookie_params(['samesite' => 'Strict']);
session_start();

$_SESSION = [];

0 comments on commit 837ea05

Please sign in to comment.