Skip to content

Commit

Permalink
use sameSite = strict in PHPSESSION cookie close #147
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-peugnet committed Dec 24, 2023
1 parent 7ed78aa commit c0a31d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
$app = new Wcms\Application();
$app->wakeup();

session_set_cookie_params(['path' => '/' . Wcms\Config::basepath()]);
session_set_cookie_params([
'path' => '/' . Wcms\Config::basepath(),
'samesite' => 'Strict'
]);
session_start();

if (class_exists('Whoops\Run') && !empty(Wcms\Config::debug())) {
Expand Down

0 comments on commit c0a31d3

Please sign in to comment.