Skip to content

Commit bf4798e

Browse files
committed
Update php.ini
1 parent 14b8ccf commit bf4798e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

php/php.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ serialize_precision = -1
315315
; or per-virtualhost web server configuration file.
316316
; Note: disables the realpath cache
317317
; https://php.net/open-basedir
318-
;open_basedir =
318+
open_basedir = /home/container:/tmp
319319

320320
; This directive allows you to disable certain functions.
321321
; It receives a comma-delimited list of function names.
@@ -1361,7 +1361,7 @@ session.save_path = "/home/container/php/sessions"
13611361
; vulnerability. It is disabled by default for maximum compatibility, but
13621362
; enabling it is encouraged.
13631363
; https://wiki.php.net/rfc/strict_sessions
1364-
session.use_strict_mode = 0
1364+
session.use_strict_mode = 1
13651365

13661366
; Whether to use cookies.
13671367
; https://php.net/session.use-cookies
@@ -1400,13 +1400,13 @@ session.cookie_domain =
14001400
; Whether or not to add the httpOnly flag to the cookie, which makes it
14011401
; inaccessible to browser scripting languages such as JavaScript.
14021402
; https://php.net/session.cookie-httponly
1403-
session.cookie_httponly =
1403+
session.cookie_httponly = 1
14041404

14051405
; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF)
14061406
; Current valid values are "Strict", "Lax" or "None". When using "None",
14071407
; make sure to include the quotes, as `none` is interpreted like `false` in ini files.
14081408
; https://tools.ietf.org/html/draft-west-first-party-cookies-07
1409-
session.cookie_samesite =
1409+
session.cookie_samesite = Lax
14101410

14111411
; Handler used to serialize data. php is the standard serializer of PHP.
14121412
; https://php.net/session.serialize-handler

0 commit comments

Comments
 (0)