This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
kiduc
/
bibiuc.com
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
59
Wiki
Activity
Browse Source
set samesite cookie attribute to strict
pull/457/head
ProjectPatatoe
4 years ago
parent
7e709addb5
commit
496995159f
2 changed files
with
2 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
install.php
+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
();
Write
Preview
Loading…
Cancel
Save