Browse Source

set samesite cookie attribute to strict

pull/457/head
ProjectPatatoe 4 years ago
parent
commit
496995159f
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      install.php
  2. +1
    -0
      system/includes/session.php

+ 1
- 1
install.php View File

@ -222,7 +222,7 @@ if(from($_SERVER,'QUERY_STRING') == "rewriteRule.html")
echo "YES!"; echo "YES!";
die(); die();
} }
session_set_cookie_params(['samesite' => 'Strict']);
session_start(); session_start();
new Settings; new Settings;


+ 1
- 0
system/includes/session.php View File

@ -1,4 +1,5 @@
<?php <?php
session_set_cookie_params(['samesite' => 'Strict']);
if (isset($_COOKIE['PHPSESSID'])) if (isset($_COOKIE['PHPSESSID']))
session_start(); session_start();


Loading…
Cancel
Save